[Distutils] Building an egg from Subversion using zc.buildout
Martin Aspeli
optilude at gmx.net
Sun Jan 28 23:01:28 CET 2007
Phillip J. Eby wrote:
> At 12:21 PM 11/19/2006 -0500, Nathan R. Yergler wrote:
>> I'm using zc.buildout for deploying a handful of applications, and one
>> of our dependencies doesn't have eggs or "correctly" formatted pages
>> (that would allow easy_install to track down the repository for direct
>> building from source). Does zc.buildout provide any way to build an egg
>>from a Subversion URL? Something with similar behavior to:
>> easy_install -m -d ./eggs http://path/to/svn/repos
>>
>> I'm happy to write a recipe if necessary, just thought I'd make sure
>> someone else hadn't already scratched this itch.
>
> If it's a dependency declared in your setup.py, you can do something like this:
>
> dependency_links=['http://path/to/svn/repos#egg=Foo-dev'],
> install_requires=['Foo>=1.2,==dev'],
>
> in your setup() call, to depend on version 1.2 or greater of Foo; the ==dev
> and the #egg=Foo-dev will allow it to be found via SVN.
>
> See also these two manual sections that document the use of ==dev and #egg=:
>
> http://peak.telecommunity.com/DevCenter/setuptools#managing-continuous-releases-using-subversion
>
> http://peak.telecommunity.com/DevCenter/setuptools#making-your-package-available-for-easyinstall
I found myself searching for this very thing, and couldn't find a way to
do it with zc.buildout. Listing an svn URL in the 'eggs' section gave a
syntax error (with or without the #egg=Foo-dev bit). Listing the svn URL
in 'find-links' didn't work either.
I'm not sure I understand zc.recipe.egg and setuptools well enough to be
able to guess what may be wrong. Since zc.buildout uses setuptools
though, if there is a standard setuptools way of doing this, I'd hope it
should be possible to do it in zc.buildout?
Martin
More information about the Distutils-SIG
mailing list