bootstrap.py fails if there is a system-wide install of the desired buildout version

Bug #1029715 reported by James Westby on 2012-07-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Buildout
Undecided
Unassigned

Bug Description

Hi,

bootstrap.py is very careful to avoid site.py, and carefully works around the fact that
distutils imports site.py.

However, it then calls out to setuptools/distribute with the -S flag. That code imports
distutils though, so site.py is imported anyway.

If distribute finds a system-wide install of the desired version it will consider the requirement
satisfied, but because bootstrap.py doesn't have site-packages on sys.path it won't find
it, and so will fail.

The workaround is to remove the system-wide install, or request a different version of
buildout to the one installed system-wide.

Thanks,

James

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

Other bug subscribers