[Python-modules-team] Bug#616858: libapache2-mod-python: Patch to switch to dh_python2, and other fixes.

Barry Warsaw barry at python.org
Wed Jul 20 21:16:13 UTC 2011


On Jul 20, 2011, at 11:05 PM, Jakub Wilk wrote:

>* Barry Warsaw <barry at python.org>, 2011-07-20, 16:18:
>>Also note that with the current rules file mod_python does not seem to >be buildable with more than one version of Python, so in converting to >dh_python2, I set X-Python-Version: >= 2.7.
>
>Err, no, whatever you wanted to achieve, this is wrong.

The problem is that the package used to be doing

./configure --with-python-version 2.7

(admittedly, on Ubuntu, sorry ;)

but that does not work because the configure script does not recognize
--with-python-version.  The build log clearly warns about that.  So it really
wants to be

--with-python python2.7

But note also that --with-python does not accept a list of Python binaries,
and afaict, the rules file does not loop over multiple Python versions.  This
essentially mans libapache2-mod-python can only be built for one version of
Python (well, without more radical changes to debian/rules).

Maybe it's better to not include an X-Python-Version header and use

PYVER=$(shell pyversions -d)

instead?

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20110720/60d6fba2/attachment-0003.pgp>


More information about the Python-modules-team mailing list