[Distutils] distribute and buildout: best practices?

Reinout van Rees reinout at vanrees.org
Wed Oct 7 14:32:44 CEST 2009


On 2009-10-07, Tarek Ziadé <ziade.tarek at gmail.com> wrote:
> On Wed, Oct 7, 2009 at 1:23 PM, Reinout van Rees <reinout at vanrees.org> wrote:
>>
>> - Do my libraries have to list a dependency on distribute or on setuptools?
>>  Everything zopish has a 'setuptools >= 0.6c9' in it.  I tried putting
>>  distribute in there, but I seemed to get less problems with leaving it at
>>  setuptools.
>>
>
> No. Once we've resolved the problem you've mentioned in the hardcoded setuptools
> dependency, you will have an empty Setuptools 0.6c9 egg in eggs/
> so libs that ask for this dependency will  think it's met.

But to actually use distribute you need to depend on it somewhere, obviously.
Otherwise I only get a setuptools egg in my path.

> It shouldn't touch anything outside your buildout, please try with the latest
> one at buildout-distribute at bitbucket.

The latest bootstrap behaves itself wonderfully.



So: once we have new zc.buildout + bootstrap it ought to be safe to change all
buildouts without inconveniencing anyone.

I'm still not 100% sure whether it is safe to put "distribute" in the
install_requires list of a package right now, however.


Reinout

-- 
Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org
Software developer at http://www.thehealthagency.com
"Military engineers build missiles. Civil engineers build targets"



More information about the Distutils-SIG mailing list