[Distutils] [buildout] bad handling of stuff specified in setup_requires

Wichert Akkerman wichert at wiggy.net
Wed Feb 23 09:50:41 CET 2011


On 2/23/11 00:12 , Chris Withers wrote:
> Hi All,
>
> I've experiences problems when my package specifies a
> setup_requires="PasteScript" in it's call to setuptools' setup function
> when using buildout and my package is specified as a develop egg in the
> buildout.
>
> I was doing this to avoid the following:
>
> /usr/local/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown
> distribution option: 'paster_plugins'
>
> ..but specifying setup_requires as above seems to:
>
> - install the PasteScript and Paste eggs directory in the checkout of my
> package under development (not ideal)
>
> - trip up buildout into thinking that those packages are globally
> available and so not install them (really bad...)
>
> - cause zc.recipe.egg, as a result, to not install scripts from those
> packages even when dependent-scripts is specified as true.
>
> Worse still, because buildout doesn't seem to know much about those
> packages, even when the setup_requires line is removed, the .egg folders
> in the development checkout of my package still cause the above buildout
> problems.
>
> Has anyone else experienced this?

As far as I know zc.buildout is not capable of handling setup_requires 
and test_requires (and hence the abuse of extra_requires for test 
requirements).

> Where's best to report this?

I suspect this has been in the zc.buildout for a long time already.

Wichert.


More information about the Distutils-SIG mailing list