sys.path order incorrect on Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Django Recipe |
In Progress
|
Undecided
|
Unassigned |
Bug Description
I have Django 1.1 installed in Windows. I am using buildout to create a Django installation using Django 1.2.
The generated sys.path in django.
'c:\\
'c:\\
which makes the new installation use the system Django, not the buildout version needed.
If I reorder those 2 lines it works correctly.
Here's my buildout.cfg:
[buildout]
parts = python django django-patches css dojo
develop = .
eggs = django-notify
dojango
django-
xlrd
xlwt
titlecase
portal_python = 2.6
portal_django = 1.2
dojango_version = dojango-
dojo_version = 1.4.2
download-cache = ${buildout:
[python]
recipe = zc.recipe.egg
interpreter = python
eggs = ${buildout:eggs}
[django]
recipe = djangorecipe
version = ${buildout:
project = myproject
projectegg = myproject
settings = settings
wsgi = true
#wsgilog = ${buildout:
extra-paths = ${buildout:
eggs = ${buildout:eggs}
test = portal
events
[django-patches]
# fix for Django ticket 11797
# support Dojo 1.4 in Dojango
recipe = iw.recipe.cmd
on_install = true
on_update = true
cmds =
copy ${buildout:
copy ${buildout:
[css]
recipe = iw.recipe.cmd
on_install = true
on_update = true
cmds =
mkdir ${buildout:
mkdir ${buildout:
mkdir ${buildout:
mkdir ${buildout:
mkdir \home\dhat\
mkdir \home\dhat\
mkdir \home\dhat\
xcopy ${buildout:
copy ${buildout:
copy ${buildout:
[dojo]
recipe = hexagonit.
strip-top-level-dir = true
destination = ${buildout:
url = http://
The same problem on Ubuntu 10.04.
buildout finds one of the needed modules under the generic Python library path '/usr/lib/ pymodules/ python2. 6', and inserts it before the correct django path 'PROJECTDIR/ parts/django' .
Looks like a bug in buildout (I would prefer if buildout inserted extra-paths before eggs).