* Piotr Ożarowski <pi...@debian.org>, 2011-03-11, 10:15:
But I now get a warning and an error (complete log attached):
[...]
dh_python2
W: dh_python2:94: Python 2.6 should install files in
/usr/lib/python2.6/dist-packages/. Did you forget
"--install-layout=deb"?
E: dh_python2:146: you most probably have to build extension for python2.5.
make: *** [binary] Error 12
if you install public modules for one Python version only, but
X-Python-Version suggests this module supports at least one more
currently supported Python version, dh_python2 tries to use installed
files for other Python versions. If it's not possible, f.e. because
all installed modules contain extensions (which cannot be shared and I
don't know if given extension is optional or not), dh_python2 will fail
with this error message.
The trouble with this error message is that it tells you how to fix the
problem, but it doesn't explain what the actual problem _is_. As such,
it is not very helpful.
I consider this an improvement over dh_pycentral/dh_pysupport because I
think it's better to FTBFS rather than detect such problems at runtime.
Agreed. Wow, that'd the first nice feature of dh_python2. :P
Shouldn't "python-$anything to dh_python2"[0][1] guides mention this
behavioral difference? IIRC there are loads of packages in the archive
that build extensions only for a single Python version.
[0] http://wiki.debian.org/Python/PythonSupportToDHPython2
[1] http://wiki.debian.org/Python/PyCentral2DhPython2
--
Jakub Wilk
--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110311162846.ga9...@jwilk.net