startup script uses PYTHONPATH instead of sys.path
Bug #960421 reported by
Georges Racinet
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP buildout recipe |
In Progress
|
Undecided
|
Unassigned |
Bug Description
The openerp startup script created by the recipe sets the path through the PYTHONPATH environment variable.
This is less robust than the sys.path hacking done by other recipes : IIRC PYTHONPATH is interpreted in site.py, and some linux distros (I've seen it on Debian Etch, don't know if it's still current) may ignore it or have the global site-packages (dist-packages for Debian) take precedence over it, which breaks the reproducibility of the buildout.
Also, creating python startups open the road to more flexibility. An example : a startup scripts for tests may want to load a cheatable datetime implementation.
Changed in anybox.recipe.openerp: | |
status: | New → In Progress |
To post a comment you must log in.
update: I made the PYTHONPATH test on Debian Squeeze, and PYTHONPATH now has precedence.
That doesn't change the fact that sys.path setting is a better warranty and the above mentionned flexibility