|
Size: 265
Comment:
|
Size: 1159
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| = How to Do Stuff under Debian = |
|
| Line 5: | Line 3: |
| == Building a Simple Python Package == | = Building a Simple Python Package = |
| Line 8: | Line 6: |
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`: |
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
changelog: Following the debian changelog format described by 4.4 Debian changelog: debian/changelog of the Debian Policy Manual.
Files for DebHelper
For package building with debhelper, the following files should also be found
compat:
