Differences between revisions 5 and 11 (spanning 6 versions)
Revision 5 as of 2012-12-28 00:12:57
Size: 1159
Editor: 5634c85f
Comment:
Revision 11 as of 2012-12-28 17:50:07
Size: 64
Editor: 5634c85f
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<<TableOfContents>> #acl: All:read
Line 3: Line 3:
= 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 [[http://www.debian.org/doc/manuals/maint-guide/dreq.en.html|Chapter 4. Required files under the debian directory]] in the [[http://www.debian.org/doc/manuals/maint-guide/index.en.html|Debian New Maintainers' Guide]]

 * `changelog`: Following the debian changelog format described by [[http://www.debian.org/doc/debian-policy/ch-source.html#s-dpkgchangelog|4.4 Debian changelog: debian/changelog]] of the [[http://www.debian.org/doc/debian-policy/index.html|Debian Policy Manual]].

== Files for DebHelper ==

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

 * `compat`:
<<ChildPages(title=<h2>Debian Howtos</h2>)>>

MortensPages/DebianHowtos (last edited 2012-12-28 17:50:07 by 5634c85f)