develop egg recipe?
I'm using zc.buildout for a project that also utilizes a custom egg-info writer. I specify the egg-info writer package as a setup_requires package in setup.py. Of course, that doesn't trigger zc.buildout (er, setuptools) to install that egg when I run buildout. I could work around this by specifying two parts in buildout.cfg: first install the egg for my egg-info writer, then create a development egg for my project (which uses the egg-info writer). I'm curious if there's a way with the current recipe set to create a develop egg within a part, as opposed to just specifying "develop = ." in the [buildout] section. Thanks, Nathan
On Dec 1, 2006, at 10:26 PM, Nathan R. Yergler wrote:
I'm using zc.buildout for a project that also utilizes a custom egg- info writer.
What is a custom egg-info writer? and why do you want one?
I specify the egg-info writer package as a setup_requires package in setup.py.
setuptools provided so many options like this. I really like setuptools, but worry that it's complexity will slow it's acceptance and slow the benefit from the essential simplicity of eggs.
Of course, that doesn't trigger zc.buildout (er, setuptools) to install that egg when I run buildout.
I wonder why. zc.buildout is just running the develop setup command. Is the setup_requires feature not expected to work with the develop command?
I could work around this by specifying two parts in buildout.cfg: first install the egg for my egg-info writer, then create a development egg for my project (which uses the egg-info writer).
I'm curious if there's a way with the current recipe set to create a develop egg within a part, as opposed to just specifying "develop = ." in the [buildout] section.
No. I plan to write a develop recipe, and am hoping to get to that this weekend. Jim -- Jim Fulton mailto:jim@zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org
At 08:50 AM 12/2/2006 -0500, Jim Fulton wrote:
On Dec 1, 2006, at 10:26 PM, Nathan R. Yergler wrote:
I'm using zc.buildout for a project that also utilizes a custom egg- info writer.
What is a custom egg-info writer? and why do you want one?
An egg-info writer allows you to generate files in .egg-info when the egg_info command is run. See: http://peak.telecommunity.com/DevCenter/setuptools#adding-new-egg-info-files
Of course, that doesn't trigger zc.buildout (er, setuptools) to install that egg when I run buildout.
I wonder why. zc.buildout is just running the develop setup command. Is the setup_requires feature not expected to work with the develop command?
No, it's expected to work with develop. However, 'setup_requires' eggs are installed to the *setup directory*, not the installation target. This is always the case for setup_requires eggs, actually. So, if Nathan's "develop" is running (and invoking his egg_info writer), then everything is as expected. However, if the egg_info writer isn't running during "develop", then something is indeed wrong.
On Dec 2, 2006, at 8:50 AM, Jim Fulton wrote: ...
I plan to write a develop recipe, and am hoping to get to that this weekend.
I've just released a new version of zc.recipe.egg that provides a develop recipe: http://www.python.org/ pypi?:action=display&name=zc.recipe.egg&version=1.0.0b3#controlling- develop-egg-generation Jim -- Jim Fulton mailto:jim@zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org
participants (3)
-
Jim Fulton
-
Nathan R. Yergler
-
Phillip J. Eby