Python packaging¶
Old procedure¶
Example: using stdeb to build [http://kedpm.sf.net].
sudo apt-get install stdeb fakeroot
sudo apt-get install python-crypto libglade2-0 python-gtk2 python-glade2
File ~/.pydistutils.cfg:
[sdist_dsc]
force-buildsystem: False
File kedpm.cfg:
[DEFAULT]
Package: kedpm
Maintainer: User Name <user@example.org>
Depends: python-crypto
Getting the code:
wget http://downloads.sourceforge.net/project/kedpm/kedpm/0.4.0/kedpm-0.4.0.tar.gz
Packaging:
py2dsc --extra-cfg-file kedpm.cfg kedpm-0.4.0.tar.gz
cd deb_dist/kedpm-0.4.0
dpkg-buildpackage -rfakeroot -uc -us
cd ..
sudo dpkg -i kedpm_0.4.0-1_all.deb
References¶
- Python/Pybuild - Debian Wiki
- Packaging Python Applications for Debian | Snakes on Callisto
- Debian -- Details of package python3-stdeb in bullseye
- Creating configuration files in /etc in Debian packages - pi3g.com
- PbuilderHowto - Ubuntu Wiki
- PyBuilder — Tutorial
- Distributing Python Modules (Legacy version) — Python 3.10.4 documentation
- Distributing Python Modules — Python 3.10.4 documentation
- What’s New In Python 3.10 — Python 3.10.4 documentation
- python - setup.py build doesn't work but develop does - Stack Overflow
- pybuild(1) — dh-python — Debian testing — Debian Manpages
- Debian -- Details of package dh-python in bullseye-backports
- Debian Python Policy — Debian Python Documentation Project 1.0 documentation