PY2DSC-DEB(1)

πŸ“¦
version 0.10.2 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

🌸 PY2DSC-DEB πŸ’…

okay bestie, listen up, because py2dsc-deb is a whole vibe and you're gonna be obsessed.

✨ NAME ✨

py2dsc-deb β€” a dpkg-buildpackage wrapper that integrates with py2dsc and builds a binary package πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, fr fr. the usage is literally this:

usage: py2dsc-deb [options] distfile

or, if you just need the girlies to explain themselves:

py2dsc-deb --help

and distfile? that's a .zip or .tar.gz file built with the sdist command of distutils. that's it. that's the whole input. slay. ✨


πŸ’– OPTIONS πŸ’–

like, every single one. no skips. no skimming. we don't do that here. 🫢

  • --dist-dir (-d) β€” directory to put final built distributions in (default='deb_dist')
  • --patch-already-applied (-a) β€” patch was already applied (used when py2dsc calls sdist_dsc)
  • --default-distribution β€” deprecated πŸ‘‘ (see --suite)
  • --suite (-z) β€” distribution name to use if not specified in .cfg (default='unstable')
  • --default-maintainer β€” deprecated πŸ’€ (see --maintainer)
  • --maintainer (-m) β€” maintainer name and email to use if not specified in .cfg (default from setup.py)
  • --debian-version β€” debian version (Default: 1)
  • --extra-cfg-file (-x) β€” additional .cfg file (in addition to stdeb.cfg if present)
  • --patch-file (-p) β€” patch file applied before setup.py called (incompatible with file specified in .cfg)
  • --patch-level (-l) β€” patch file applied before setup.py called (incompatible with file specified in .cfg)
  • --patch-posix (-q) β€” apply the patch with --posix mode
  • --remove-expanded-source-dir (-r) β€” remove the expanded source directory
  • --ignore-install-requires (-i) β€” ignore the requirements from requires.txt in the egg-info directory
  • --pycentral-backwards-compatibility β€” This option has no effect, is here for backwards compatibility, and may be removed someday. πŸ™ˆ
  • --workaround-548392 β€” This option has no effect, is here for backwards compatibility, and may be removed someday. πŸ™ˆ
  • --no-backwards-compatibility β€” This option has no effect, is here for backwards compatibility, and may be removed someday. πŸ™ˆ
  • --guess-conflicts-provides-replaces β€” If True, attempt to guess Conflicts/Provides/Replaces in debian/control based on apt-cache output. (Default=False).
  • --with-python2 β€” If True, build package for python 2. (Default=False).
  • --with-python3 β€” If True, build package for python 3. (Default=True). ⭐
  • --no-python2-scripts β€” If True, do not install scripts for python 2. (Default=False).
  • --no-python3-scripts β€” If True, do not install scripts for python 3. (Default=False).
  • --force-x-python3-version β€” Override default minimum python3:any dependency with value from x-python3- version
  • --allow-virtualenv-install-location β€” Allow installing into /some/random/virtualenv-path
  • --compat (-c) β€” Debian compatibility level (Default=9)
  • --with-dh-virtualenv β€” 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.
  • --with-dh-systemd β€” Adds the systemd addon that will dh_systemd_enable and dh_systemd_start helpers at the correct time during build.
  • --sign-results β€” Use gpg to sign the resulting .dsc and .changes file
  • --sign-key β€” Specify signing key
  • --ignore-source-changes β€” Ignore all changes on source when building source package (add -i.* option to dpkg-source)
quick note bestie: a few of these are deprecated and a few are literally doing nothing β€” they're just chillin' for backwards compatibility and could get yeeted someday. also --patch-file and --patch-level are incompatible with a file specified in .cfg. read the fine print, i'm begging. 😭

🌈 the sign-off 🌈

this was py2dsc-deb 0.10.2, dated August 2025. iconic. timeless. ate and left no crumbs. mwah πŸ’…βœ¨πŸ’–

πŸ“¦ where this page comes from