Differences between revisions 5 and 6
Revision 5 as of 2011-04-26 19:01:54
Size: 2198
Editor: BarryWarsaw
Comment:
Revision 6 as of 2011-04-26 19:04:23
Size: 2250
Editor: BarryWarsaw
Comment:
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
 * [[attachment:natty-main-brdeps.txt|Natty main]]

Converting python-central based package to dh_python2

Step by step

  • in debian/control:
    • remove python-central from Build-Depends(-Indep)
    • bump minimum required python-all (or python or python-all-dev) package version to 2.6.6-3~
      • (read /usr/share/doc/python/changelog.Debian.gz to check if you need a newer version)
    • remove XB-Python-Version line(s)
  • check if debian/*.install and other files need additions. dh_python2 ships the actual files in /usr/shared/pyshared, plus the symlinks in /usr/lib/python2.x/*-packages.
  • if you use CDBS:
    • bump minimum required cdbs version to 0.4.90~

    • sed -i -e '/DEB_PYTHON_SYSTEM=pycentral/d' debian/rules

  • if you use dh sequencer:
    • add "python2" to dh's --with
  • if you use pure debhelper:
    • sed -i -e 's/dh_pycentral/dh_python2/' debian/rules

  • remove debian/pyversions file and add X-Python-Version in debian/control instead (see policy for syntax, example: ">= 2.5")

  • XS-Python-Version is still supported, but consider replacing it with X-Python-Version (same syntax, except current and all keywords are gone). If you don't know what's foo's minimum required Python version, don't add this field and wait for bug report to bump it

Backports

  • dh_python2 was released with squeeze. Backports to squeeze with these changes should work there too.

Bug and Status Tracking

Bugs:

Packages:

Questions?