Buildout -- Software for automating application assembly

Generated sys.path masks buildout's eggs

Reported by Matthew Desmarais on 2008-04-28
2
Affects Status Importance Assigned to Milestone
Buildout
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  Edit
Everyone can see this information.

Other bug subscribers