Generated sys.path masks buildout's eggs

Bug #223860 reported by Matthew Desmarais
2
Affects Status Importance Assigned to Milestone
Buildout
New
Undecided
Unassigned

Bug Description

Given that PasteScript and SQLAlchemy 0.3.6 have been installed into the system-wide python environment, then for this buildout.cfg:

[buildout]
parts = custom_python_interpreter

[custom_python_interpreter]
recipe = zc.recipe.egg
interpreter = app_python
eggs =
       nose
       pyyaml==3.05
       pastescript
       pyPDF==1.10
       sqlalchemy==0.4.4

zc.buildout generates a sys.path like this:

sys.path[0:0] = [
  '/home/mad06017/tmp/zc.buildout.bugs/eggs/nose-0.10.1-py2.5.egg',
  '/home/mad06017/tmp/zc.buildout.bugs/eggs/PyYAML-3.05-py2.5.egg',
  '/usr/lib/python2.5/site-packages/PasteScript-1.6.2-py2.5.egg',
  '/usr/lib/python2.5/site-packages',
  '/home/mad06017/tmp/zc.buildout.bugs/eggs/pyPdf-1.10-py2.5.egg',
  '/home/mad06017/tmp/zc.buildout.bugs/eggs/SQLAlchemy-0.4.4-py2.5.egg',
  ]

When the custom python interpreter is used, "import sqlalchemy" will find version 0.3.6 instead of the expected 0.4.4.

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.