setup.py should rewrite bin script when installed to a non-standard location so it can be run without specifying PYTHONPATH
Bug #250826 reported by
Christopher Armstrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When running the 'setup.py install --prefix ~/opt/whatever', the resulting installed bzr script is unusable because the bzrlib will be installed to a location that isn't importable from a standard environment.
The bzr script should be modified at install-time to include some code which makes the associated bzrlib importable.
In addition to making the initial use easier, it allows people to deal with multiple installs of different versions of bzr much more easily.
The code could be something like:
import sys;
sys.path.insert(0, "/path/
Changed in bzr: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: setup.py |
tags: | added: check-for-breezy |
To post a comment you must log in.
Attached is a not particularly pretty possible solution to the problem. There is no NEWS entry or what-have-you but it should work.