stdeb
Python to Debian source package conversion utility
Decision gist · record as of 2026-08-14
Yes—if you need to package Python applications for Debian/Ubuntu systems. stdeb eliminates manual debian/ directory creation and integrates cleanly into existing setuptools workflows. Install friction is minimal, maintenance is steady (recent commits, no known vulnerabilities), and the MIT license is unrestricted. The aging status reflects infrequent releases rather than abandonment; the tool is stable and fit for production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7+; minimum debhelper version 12 on the target Debian/Ubuntu system; distutils or setuptools in the Python environment.
- Low friction—pure Python wheel with no runtime dependencies.
- Maintenance is aging (336 days since last release), but the repository is active and recent (last commit 2025-09-12), suggesting occasional updates rather than abandonment.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) places no restrictions on use, modification, or distribution of stdeb itself or packages built with it.
last release 2025-09-12 (336 days) · last repo commit 2025-09-12 · 504 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 386,722 downloads/mo, #7,050 on PyPI
Alternatives
Verify before relying
pip install stdeb
python3 setup.py --command-packages=stdeb.command sdist_dsc
python3 setup.py --command-packages=stdeb.command bdist_deb- Whether stdeb can reliably generate Python 2 packages from Python 3 (described as 'not well tested' in the description).
- Compatibility with modern Debian/Ubuntu releases beyond what the description explicitly lists.
- Whether the pybuild-based build system (as of 0.11.0) introduces any breaking changes for existing workflows.
What it is and what it does
stdeb is a distutils/setuptools extension that automates the conversion of Python packages into Debian source packages (.dsc) and binary packages (.deb files). It provides new distutils commands—sdist_dsc, bdist_deb, install_deb, and debianize—that handle the boilerplate of Debian packaging, including control file generation, changelog creation, and dependency mapping. The package also includes standalone utilities (py2dsc, py2dsc-deb, pypi-download, pypi-install) for downloading packages from PyPI and building or installing them as .deb files.
The tool is designed for developers and system administrators who need to package Python applications for Debian-based systems. It supports building packages for Python 2, Python 3, or both from a single source, with customization options for Debian metadata, dependencies, and build flags. As of version 0.11.0, stdeb requires Python 3.7+ to run and uses debhelper 12+ with pybuild for the generated packages.
Use it for
- Package a Python application for distribution on Debian/Ubuntu systems without manually writing debian/ directory structure.
- Build .deb files from PyPI packages for internal deployment or repository hosting.
- Automate Debian packaging in CI/CD pipelines to generate installable binaries from Python source.
- Create both Python 2 and Python 3 variants of a package from a single codebase using the --with-python2/--with-python3 flags.
- Customize Debian package metadata (dependencies, maintainer, homepage) via stdeb.cfg configuration file.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes—if you need to package Python applications for Debian/Ubuntu systems.
stdeb eliminates manual debian/ directory creation and integrates cleanly into existing setuptools workflows. Install friction is minimal, maintenance is steady (recent commits, no known vulnerabilities), and the MIT license is unrestricted. The aging status reflects infrequent releases rather than abandonment; the tool is stable and fit for production use.
Install
stdeb on PyPI
Before you install
Low friction—pure Python wheel with no runtime dependencies. Maintenance is aging (336 days since last release), but the repository is active and recent (last commit 2025-09-12), suggesting occasional updates rather than abandonment.
Requires Python 3.7+; minimum debhelper version 12 on the target Debian/Ubuntu system; distutils or setuptools in the Python environment.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution of stdeb itself or packages built with it.
Quickstart
pip install stdeb
python3 setup.py --command-packages=stdeb.command sdist_dsc
python3 setup.py --command-packages=stdeb.command bdist_deb
Verify before relying
- Whether stdeb can reliably generate Python 2 packages from Python 3 (described as 'not well tested' in the description).
- Compatibility with modern Debian/Ubuntu releases beyond what the description explicitly lists.
- Whether the pybuild-based build system (as of 0.11.0) introduces any breaking changes for existing workflows.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 336 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 386,722 / month, #7,050 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseOperating System :: POSIX :: LinuxProgramming Language :: Python :: 2.7Programming Language :: Python :: 3 |
Evidence: stdeb-0.11.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “python to debian package conversion”
- stdebConverts Python packages into Debian source and binary packages (.deb…
- python-debianReads and manipulates Debian packaging metadata formats including…
- debian-inspectorParses Debian package metadata, copyright files, and control files in…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also python-debian · deb-pkg-tools · debian-inspector · distribute · setuptools · pbs-installer · standard-distutils · verlib2 · pex · dlib-bin