DH-VIRTUALENV(1)
π dh-virtualenv(1) π
okay bestie, sit DOWN, because we're about to talk about the most iconic little debhelper addon in the game β this is dh-virtualenv, straight out of the DebHelper manual, section 1. π
β¨ NAME β¨
dh-virtualenv β deploy a Python package in a self-contained virtualenv π¦
πΈ SYNOPSIS πΈ
dh_virtualenv [OPTIONS]
π DESCRIPTION π
So like, dh-virtualenv is a tool that's literally trying to do the mashup of the century: Debian packaging meets self-contained virtualenv based Python deployments. π«Ά
The way it pulls this off? It extends debhelper's sequence by adding a brand new command into the sequence, dh_virtualenv, and that command effectively replaces these commands from the sequence:
dh_auto_installdh_python2dh_pycentraldh_pysupport
And in the sequence, dh_virtualenv gets inserted right after dh_perl. periodt. π
β OPTIONS β
-pPACKAGE,--package=PACKAGE β act on the package named PACKAGE-NPACKAGE,--no-package=PACKAGE β do not act on the specified PACKAGE-v,--verboseβ turn on verbose mode, bestie--extra-index-urlβ pass extra index URL topip--preinstall=PACKAGE β preinstall a PACKAGE before runningpip--pip-tool=PIP_TOOL β tool used to install requirements--extra-pip-argβ extra arg for thepipexecutable--extra-virtualenv-argβ extra arg for thevirtualenvexecutable--index-urlβ base URL for PyPI server--setuptoolsβ usesetuptoolsinstead ofdistribute--install-suffix=SUFFIX β override virtualenv installation suffix--upgrade-pipβ force upgradepipin virtualenv--requirements=FILE β use FILE for requirements--setuptools-testβ runsetup.py testupon build--python=PATH β use Python interpreter at PATH--builtin-venvβ use built-invenvof Python 3--skip-installβ don't runpip install .
π§ QUICK GUIDE FOR MAINTAINERS π§
okay this part is for the maintainers, but I got you, it's short and sweet:
- Build depend on
pythonorpython-allanddh-virtualenv - Add
${python:Depends}toDepends - Add
python-virtualenvto dh's--withoption
π SEE ALSO π
Online documentation can be found at https://dh-virtualenv.readthedocs.io/en/latest. π
This package should also ship with the complete documentation under /usr/share/doc/dh-virtualenv.
π AUTHOR π
Jyrki Pulliainen / Spotify AB <jyrki@spotify.com>
π COPYRIGHT π
Copyright (C) 2013, Spotify AB. Licensed under the GNU General Public License version 2 or later.
ngl, that's a whole lot of license energy but it's important, bestie. π
and that's the whole page, fr fr β this was DH-VIRTUALENV(1) from the DebHelper manual, page 1, and honestly? iconic. slay. go build something. πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: dh-virtualenv 1.2.2-1.3 Β· GPL-2.0-or-later
- ubuntu jammy: dh-virtualenv 1.2.2-1.1build1 Β· GPL-2.0-or-later
- ubuntu noble: dh-virtualenv 1.2.2-1.4build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms