setup_requires bypasses buildout

Bug #257555 reported by Wichert Akkerman
50
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Buildout
New
Undecided
Unassigned

Bug Description

If a package you install (in my case as develop egg) uses setup_requires setuptools tries to install the requirements listed there directly. This bypasses all of buildout, which means it can use the wrong indexes and ignores version pins. I noticed this because the result was a version conflict.

Revision history for this message
sureshvv (sureshvv) wrote :

On the Mac, the egg for the package indicated in setup_requires is installed in the same directory as the package being developed. Does not happen on Linux. Is this by design?

Revision history for this message
bbinet (binet-bruno) wrote :

This is a setuptools/distribute issue. This has been reported on distribute issue tracker, and a patch is available.

See: https://bitbucket.org/tarek/distribute/issue/227/easy_install-doesnt-pass-its-arguments

Hope it will be merged soon.

Revision history for this message
bbinet (binet-bruno) wrote :
Revision history for this message
bbinet (binet-bruno) wrote :

In fact, this bug affect both distribute and zc.buildout.
As said in my previous comment, the distribute bug is already addressed in: https://bitbucket.org/tarek/distribute/issue/227/easy_install-doesnt-pass-its-arguments (but not merged yet).

On zc.buildout side, I've just uploaded a fix in "patch_257555.diff". Note that this patch has been created from zc.buildout v1.5.2.

What do you think about this patch?

Revision history for this message
Tres Seaver (tseaver) wrote :

The patch looks right to me.

Revision history for this message
Tres Seaver (tseaver) wrote :

I don't see now how the patch will fix the 'setup_requires' issue: it passes along only the 'allow_hosts' and 'index_url' settings as command-line flags.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.