DOKK / manpages / debian 12 / python3-stdeb / py2dsc.1.en
PY2DSC(1) User Commands PY2DSC(1)

py2dsc - creates Debian source package from Python package

usage: py2dsc [options] distfile

or: py2dsc --help

where distfile is a .zip or .tar.gz file built with the sdist command of distutils.

directory to put final built distributions in (default='deb_dist')
patch was already applied (used when py2dsc calls sdist_dsc)
deprecated (see --suite)
distribution name to use if not specified in .cfg (default='unstable')
deprecated (see --maintainer)
maintainer name and email to use if not specified in .cfg (default from setup.py)
debian version (Default: 1)
additional .cfg file (in addition to stdeb.cfg if present)
patch file applied before setup.py called (incompatible with file specified in .cfg)
patch file applied before setup.py called (incompatible with file specified in .cfg)
apply the patch with --posix mode
remove the expanded source directory
ignore the requirements from requires.txt in the egg-info directory
This option has no effect, is here for backwards compatibility, and may be removed someday.
This option has no effect, is here for backwards compatibility, and may be removed someday.
This option has no effect, is here for backwards compatibility, and may be removed someday.
If True, attempt to guess Conflicts/Provides/Replaces in debian/control based on apt-cache output. (Default=False).
If True, build package for python 2. (Default=False).
If True, build package for python 3. (Default=True).
If True, do not install scripts for python 2. (Default=False).
If True, do not install scripts for python 3. (Default=False).
Override default minimum python3:any dependency with value from x-python3- version
Allow installing into /some/random/virtualenv-path
Debian compatibility level (Default=9)
Use dh_virtualenv to build the package instead of python_distutils. This is useful to embed an application with all its dependencies and dont touch to the system libraries.
Adds the systemd addon that will dh_systemd_enable anddh_systemd_start helpers at the correct time during build.
Use gpg to sign the resulting .dsc and .changes file
Ignore all changes on source when building source package (add -i.* option to dpkg-source)
May 2022 py2dsc 0.10.0