Building a Simple Python Package

Given a simple, i.e. no extra data or extensions, debian package with sub-packages this section explains how to make a Debian Python2 and Python3 package from it.

Assume that package pack has an __init__.py, some modules, and a hierarchy of sub-packages with their own __init__.py and modules. At the level of the folder pack put a debian folder with the files described in the following sections.

Debian Policy Files

The following files are requred by the Chapter 4. Required files under the debian directory in the Debian New Maintainers' Guide

Files for DebHelper

For package building with debhelper, the following files should also be found