Transition Python packages to use dh_python helpers

Registered by Barry Warsaw

It's time to get rid of python-central and python-support in favor of dh_python{2,3}. All pysupport and pycentral packages should be converted to dh_python with coordination through Debian. We'll make a case-by-case decision about that based on the need to sync and maintain our own set of patches. We can't do all the work, but we will ensure the documentation and tools are up-to-date, and we will lead the call-to-arms.

Blueprint information

Status:
Complete
Approver:
Steve Langasek
Priority:
High
Drafter:
Barry Warsaw
Direction:
Approved
Assignee:
Barry Warsaw
Definition:
Approved
Series goal:
Accepted for oneiric
Implementation:
Implemented
Milestone target:
milestone icon oneiric-alpha-3
Started by
Barry Warsaw
Completed by
Barry Warsaw

Whiteboard

Transition to dh_python{2,3} helpers
=============================

Have general agreement in Debian to move to dh_python{2,3}, away from -central, maybe -support

311 deprecation bugs in Debian for python-central (311 bugs)
183 packages using python-support in main
 - Q: What percentage are maintained by Debian Python Modules Team? (easier to send back to Debian)
 - Transition has good momentum
 - http://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=pycentral-deprecation;<email address hidden>

What can/should Ubuntu do?
Need to modify packages for dh_python3. Can we fix for py2 at the same time?

dh_auto_{build,etc} don't support py3
Need to worry about non-dh

Can we throw new contributors at http://wiki.debian.org/Python/PyCentral2DhPython2 , http://wiki.debian.org/Python/PythonSupportToDHPython2 ?
For some packages, not all

Shared namespace packages
pysupport: removes empty __init__.py, creates at configure time
Look for multiple packages with a shared prefix under /usr/share/pyshared

Backports:
- Could obviously put into -backports, wanted in -updates so default PPA config works
- lucid-updates safe, but maverick might not be

Strategy:
 - Make sure guidelines are good for 80-90% for new contributors
 - Give them verification script
 - If debian/rules is more than a screen long, maybe not good for new contributors
 - Sponsor should send patch back to Debian

Goals:
 - Packages on CD (paying attention to namespace packages)
 - Ubuntu-specific packages (including packages where we changed the helper)
 - Main packages
 - Universe pycentral packages
 - Pysupport packages

Package for Launchpad (given by flacoste on 20110511):
python-dev
python-psycopg2
python-apt
python-geoip
python-profiler
python-svn
python-subversion
python-sqlite
python-imaging
python-feedparser
python-paramiko
python-openid
python-openssl
python-chardet
python-tickcount
python-lxml
python-magic
python-pygments
python-subunit
python-support
python-pysqlite2
python-pyrex
python-egenix-mxdatetime
python-egenix-mxtools
python-amqplib
python-gmpy

Work Items:
[barry] Ping security team about tools for comparing pre-/post-dh_py2 packages: DONE
[barry] Find packages where Ubuntu uses pycentral, not Debian (including Ubuntu-only packages): DONE
[barry] Find packages where Ubuntu uses pysupport, not Debian (including Ubuntu-only packages): DONE
[doko] Develop list of packages on CDs needing conversion (bug #788514): DONE
[kitterman] Begin discussion on Python Policy for namespace packages: TODO
[vorlon] Connect zygmunt with doko about some way to get dh_python2 in lucid: DONE
[doko] make sure dh_python2 can be used in lucid: TODO
[barry] Make sure http://wiki.debian.org/Python/PythonSupportToDHPython2 and PyCentral page are accurate, up to date: DONE
[barry] Follow up on PEP-382 (namespace packages for py3): DONE
[barry] E-mail ubuntu-devel-announce about dh_python2 transition: DONE
[vorlon] Coordinate with lifeless to find namespace package conflicts using conflicts checker: TODO
[barry] Plan ubuntu bug jam day for dh_python2 transition w/dholbach: DONE

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.