Updated dh_python to satisfy everybody
Hi all,
given that nobody complained to my proposal of last evening, I went ahead
and implemented it.
I've updated dh_python (and the upcoming debhelper NMU 5.0.37.2) here:
http://people.debian.org/~hertzog/python/
Here's what has changed in this dh_python (taken from my debhelper
changelog):
* Update of dh_pyhton
- vastly refactored, easier to understand, and the difference
between old policy and new policy is easier to grasp
- it supports an -X option which can be used to not scan some files
- uses debian/pyversions as reference source of information for
dependencies but also parse the XS-Python-Version header as fallback.
- ${python:Versions}'s default value is XS-Python-Version's value
instead of "all" when the package doesn't depend on a
specific python version. Closes: #373853
- always generate ${python:Provides} and leave the responsibility to the
maintainer to not use ${python:Provides} if he doesn't want the
provides.
- uses "XS-Python-Standards-Version: 0.4" as reference field to run in new
policy mode. The presence of XS-Python-Version will also trigger the new
policy mode (this is for short-term compatibility, it may be removed in
the not too-distant future).
This means that the have to change the current text of the policy to enforce the
use of the "X-Python-Standards-Version" field. This field must contain the
version of the python policy that the package respects, and the current
version is "0.4".
Joe, can you do that please? I already documented that on the wiki page.
If you have that field, then dh_python can work without XS-Python-Version.
However if the field is present, it will still be used.
Joss is satisfied with this compromise and has updated his dh_pysupport
script to not mess with the dependencies and you can find the updated
package here:
http://malsain.org/~joss/deb/
What still needs to be done:
- pyversions needs to be modified to not fail if the field
XS-Python-Version is not present. He should in that case
use the information of the debian/pyversions file. I will
hopefully soon provide a patch for this.
- all those changes need to be uploaded (tomorrow should be doable)
Cheers,
--
Raphaël Hertzog
Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/
Reply to: