Buildout-Constructed "site.py" Assumes Location of Eggs Directory

Bug #695980 reported by Jeff Rush
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Buildout
New
Undecided
Unassigned

Bug Description

Function "addsitepackages" in parts/buildout/site.py assumes that the directory holding the setuptools and zc.buildout eggs are located off the project root directory. The code takes the path of the site.py file, go up three directories and appends "eggs/zc.buildout-..." to the paths.

This breaks buildouts that use the provided escape mechanism "eggs-directory = some_other_place", either in the main buildout.cfg or under ~/.buildout/defaults.

To duplicate, just add the following to your buildout.cfg, re-bootstrap it and run bin/buildout. That script will be unable to import zc.buildout.buildout to invoke the main() routine.

[buildout]
eggs-directory = /var/tmp/eggs

Oddly the bootstrap.py respects any setting in buildout.cfg and downloads the setuptools and zc.buildout eggs into the alternative directory - it's just buildout itself that doesn't look there afterward.

Revision history for this message
RodrigoMoraes (rodrigo-moraes) wrote :
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.