Creating a debian package from a python distutils package

This is the process for converting a python package into a debian package, this is helpful when runnign a debian system, as you can then manage python modules with standard debian package management tools.

  1. Install python-stdebpython and debian logos
  2. Convert python package to debain source package: “py2dsc python-module.zip”
  3. This creates a deb_dist dir containg a sub dir with the same name as the original zip, cd to it.
  4. Build binary package from debian source package: “dpkg-buildpackage”
  5. The binary package will be in the parent directory.