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.
- Install python-stdeb
- Convert python package to debain source package: “py2dsc python-module.zip”
- This creates a deb_dist dir containg a sub dir with the same name as the original zip, cd to it.
- Build binary package from debian source package: “dpkg-buildpackage”
- The binary package will be in the parent directory.