Differences between revisions 8 and 9
Revision 8 as of 2011-04-26 19:10:19
Size: 2409
Editor: BarryWarsaw
Comment:
Revision 9 as of 2011-04-26 19:12:07
Size: 2570
Editor: BarryWarsaw
Comment:
Deletions are marked like this. Additions are marked like this.
Line 33: Line 33:
 * [[attachment:wheezy-main-brdeps-ONLY.txt|In Wheezy main but not Natty main]]
 * [[attachment:natty-main-brdeps-ONLY.txt|In Natty main but not Wheezy 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 which Build-Dep on python-central:

Questions?