DOKK / manpages / debian 12 / dh-virtualenv / dh_virtualenv.1.en
DH-VIRTUALENV(1) DebHelper DH-VIRTUALENV(1)

dh-virtualenv - deploy a Python package in a self-contained virtualenv

dh_virtualenv [OPTIONS]

dh-virtualenv is a tool that aims to combine Debian packaging with self-contained virtualenv based Python deployments. To do this, the package extends debhelper's sequence by providing a new command in sequence, dh_virtualenv, which effectively replaces following commands from the sequence:

  • dh_auto_install
  • dh_python2
  • dh_pycentral
  • dh_pysupport



In the sequence the dh_virtualenv is inserted right after dh_perl.

Act on the package named PACKAGE
Do not act on the specified PACKAGE
Turn on verbose mode.
Pass extra index URL to pip
Preinstall a PACKAGE before running pip.
Tool used to install requirements.
Extra arg for the pip executable.
Extra arg for the virtualenv executable.
Base URL for PyPI server.
Use setuptools instead of distribute.
Override virtualenv installation suffix
Force upgrade pip in virtualenv
Use FILE for requirements
--setuptools-test
Run setup.py test upon build.
Use Python interpreter at PATH
Use built-in venv of Python 3
Don't run pip install .

1.
Build depend on python or python-all and dh-virtualenv
2.
Add ${python:Depends} to Depends
3.
Add python-virtualenv to dh's --with option

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.

Jyrki Pulliainen / Spotify AB <jyrki@spotify.com>

Copyright (C) 2013, Spotify AB. Licensed under the GNU General Public License version 2 or later