File: 41-pymod.txt

package info (click to toggle)
debmake-doc 1.16-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,476 kB
  • sloc: sh: 686; makefile: 668; python: 146; ansic: 114; sed: 16
file content (13 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
[[pythonmod]]
==== Python module

You can generate a functioning single binary Debian package with a reasonable package description directly from the Python module package offered as a tarball, 'pythonmodule-1.0'*.tar.gz*.  The *-b* option specifying the package type *python* and the *-s* option to copy the package description from the upstream package need to be specified.

----
 $ debmake -s -b':python' -a pythonmodule-1.0.tar.gz -i debuild
----

For other interpreted languages that support the *-b* option, specify the pertinent 'type' for the *-b* option.

For interpreted languages without the *-b* option support, specify the *script* type instead and add the interpreter package as a dependency of the resulting binary package by adjusting the *debian/control* file.