(I'm not the maintainer.) * Steve Langasek <steve.langa...@canonical.com>, 2012-07-03, 16:21:
Normally I wouldn't propose such extensive changes to debian/rules, but in this case updating debhelper is a significant aid in packaging of python modules, and particularly for python3 modules.
FWIW, no, debhelper offers no aid for packaging Python 3 modules. That's why you had to add a dozens of lines of code to debian/rules to make it build.
In contrast, I estimate that adapting the current debian/rules would be a 2 line change: update PYVERS to include Python 3 versions, and add a call to dh_python3. (Plus another 3 lines to fix Policy §4.6 violations…)
-Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), libpam0g-dev, python-support +Build-Depends: debhelper (>= 9), python-all-dev (>= 2.3.5-11), python3-all-dev, libpam0g-dev
It should be: python-all-dev (>= 2.6.6-3~) python3-all-dev (>= 3.2)
Conflicts: python2.3-pam, python2.4-pam Replaces: python2.3-pam, python2.4-pam Provides: ${python:Provides} +XB-Python-Version: ${python:Versions}
This part is not documented in the changelog. It's also wrong: XB-Python-Version has been depracted (Python Policy §2.3), so please don't add it.
+Suggests: python3-pam-dbg
No such package exist…
--- debian/python-pam.install 1970-01-01 00:00:00 +0000 +++ debian/python-pam.install 2012-07-03 23:09:33 +0000 @@ -0,0 +1,2 @@ +usr/lib/python2*/dist-packages/*[!_][!_].so +usr/lib/python2*/dist-packages/*.egg-info
In case it's not clear, this unusual wildcard in the first line is presumably here to exclude extension modules built for -dbg interpreters (*_d.so). However, python-pam doesn't currently build such modules…
--- debian/python3-pam.install 1970-01-01 00:00:00 +0000 +++ debian/python3-pam.install 2012-07-03 23:09:33 +0000 @@ -0,0 +1,2 @@ +usr/lib/python3/dist-packages/*-[0-9][0-9][!d]*.so +usr/lib/python3/dist-packages/*.egg-info
Again, the wildcard in the first line is to exclude extension modules built for -dbg interpeters (*-cpython3?-d*.so).
-- Jakub Wilk -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org