mangling of sys.path in setup.py makes installation of more than one lazr package fail
Bug #400170 reported by
James Westby
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAZR package template |
Fix Released
|
Undecided
|
Unassigned | ||
lazr.batchnavigator |
Fix Released
|
Undecided
|
Unassigned | ||
lazr.config |
Fix Released
|
Undecided
|
Unassigned | ||
lazr.delegates |
Fix Released
|
Undecided
|
Unassigned | ||
lazr.lifecycle |
Fix Released
|
Undecided
|
Unassigned | ||
lazr.restfulclient |
Fix Released
|
Undecided
|
Unassigned | ||
lazr.smtptest |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
setup.py does
sys.path.
from lazr.restfulclient import __version__
however, if there is another lazr module in sys.path this will fail
with an import error, as the lazr package can't be split between
"src" and the other location in sys.path.
This means that if you
setup.py install
lazr.uri, a dependency of lazr.restfulclient then
setup.py install
in lazr.restfulclient will fail.
This makes it very difficult to install more than one lazr module.
This is a blocker for packaging the new launchpadlib. I could hack around
it in the package, but it would be better to fix it.
Thanks,
James
Related branches
Changed in lazr.yourpkg: | |
status: | New → Fix Released |
Changed in lazr.restfulclient: | |
status: | New → Fix Released |
Changed in lazr.lifecycle: | |
status: | New → Confirmed |
Changed in lazr.config: | |
status: | New → Fix Released |
Changed in lazr.smtptest: | |
status: | New → In Progress |
Changed in lazr.smtptest: | |
status: | In Progress → Fix Committed |
Changed in lazr.lifecycle: | |
status: | Confirmed → Fix Released |
Changed in lazr.delegates: | |
status: | New → Fix Released |
Changed in lazr.batchnavigator: | |
status: | New → Fix Released |
Changed in lazr.smtptest: | |
status: | Fix Committed → Fix Released |
milestone: | none → 2.0 |
To post a comment you must log in.
Any comment on this? I'd rather not implement a hack in the packaging.
Thanks,
James