[Distutils] Building an egg from Subversion using zc.buildout

Jim Fulton jim at zope.com
Mon Jan 29 22:46:51 CET 2007


On Jan 29, 2007, at 4:31 PM, Martin Aspeli wrote:

> Phillip J. Eby wrote:
>> At 10:52 PM 1/28/2007 +0000, Martin Aspeli wrote:
>>> Phillip J. Eby wrote:
>>>> At 04:25 PM 1/28/2007 -0600, Ian Bicking wrote:
>>>>> Is there a way to do find-links in buildout?  I think so, maybe  
>>>>> named
>>>>> something like find-links.  Then you'd point at a page that has  
>>>>> the link
>>>>> with #egg=....  IIRC you have to point find-links at a real  
>>>>> HTML page.
>>>> Not for easy_install, you don't.  If buildout doesn't support  
>>>> it, that's a
>>>> bug or limitation of buildout.
>>> Okay, then given that I'm trying to install the egg at
>>> http://svn.plone.org/svn/plone/plone.portlets/trunk which is called
>>> plone.portlets, what should the find-link and the egg name + version
>>> specifier be?
>>
>> If you look at the setup.py and setup.cfg that are there, it would  
>> appear
>> you want to use #egg=plone.portlets-0.1dev as your tag and
>> plone.portlets>=0.1dev as your requirement.
>
> You're absolutely right. I finally got this working now. :)

Yay! I'm glad you figured this out.

> The syntax in buildout.cfg is:
>
> [buildout]
>
> parts =
>      instance
>      zopepy
>
> # XXX: The links below are needed to track unreleased eggs; once  
> they are
> # in the cheeseshop we can remove all but the first two
> find-links =
>      http://download.zope.org/distribution/
>      http://effbot.org/downloads
>
>      http://codespeak.net/svn/kukit/kss.core/trunk#egg=kss.core-0.1dev
>      ...
>
> # Add additional eggs here
> eggs =
>      elementtree
>      python-yadis
>      python-openid
>      python-urljr
>      ...
>      kss.core
>      ...
>
> Thank you!

So do you get a develop egg and egg link or a regular egg for each of  
these packages?  If the later, as I fear, I think you have a problem.

Jim

--
Jim Fulton			mailto:jim at zope.com		Python Powered!
CTO 				(540) 361-1714			http://www.python.org
Zope Corporation	http://www.zope.com		http://www.zope.org





More information about the Distutils-SIG mailing list