Bug#641154: tracext namespace conflict

dEbian Bugs RC

Package: trac-git,trac-mercurial
Severity: serious

trac-git and trac-mercurial both share the "tracext" namespace, but one
of them uses python-central and the other one python-support. These
helpers put Python modules into different directories. As as a
consequence, if you install both trac-git and trac-mercurial, the latter
doesn't work at all:

| # apt-get install trac-mercurial
| [snip]
|
| # python -c 'import tracext.hg as m; print m'
| <module 'tracext.hg' from '/usr/lib/pymodules/python2.6/tracext/hg/__init__.pyc'>
|
| # apt-get install trac-git
| [snip]
|
| # python -c 'import tracext.hg as m; print m'
| Traceback (most recent call last):
| File "<string>", line 1, in <module>
| ImportError: No module named hg

Either trac-git has to be converted to python-support or trac-mercurial
to dh_python2.
severity 641154 minor
thanks


Correction: trac uses pkg-resources, which makes it magically work:
| # python -c 'import tracext.hg as m; print m'
| Traceback (most recent call last):
| File "<string>", line 1, in <module>
| ImportError: No module named hg
|
| # python -c 'import trac; import tracext.hg as m; print m'
| <module 'tracext.hg' from '/usr/lib/pymodules/python2.7/tracext/hg/__init__.pyc'>
Processing commands for [email protected]:

Bug #641154 [trac-git,trac-mercurial] tracext namespace conflict
Severity set to 'minor' from 'serious'

Stopping processing here.

Please contact me if you need assistance.