DH-VIRTUALENV(1)

πŸ“¦
version 1.2.2 Β· 3 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– 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_install
  • dh_python2
  • dh_pycentral
  • dh_pysupport

And in the sequence, dh_virtualenv gets inserted right after dh_perl. periodt. πŸ‘‘


⭐ OPTIONS ⭐

  • -p PACKAGE, --package=PACKAGE β€” act on the package named PACKAGE
  • -N PACKAGE, --no-package=PACKAGE β€” do not act on the specified PACKAGE
  • -v, --verbose β€” turn on verbose mode, bestie
  • --extra-index-url β€” pass extra index URL to pip
  • --preinstall=PACKAGE β€” preinstall a PACKAGE before running pip
  • --pip-tool=PIP_TOOL β€” tool used to install requirements
  • --extra-pip-arg β€” extra arg for the pip executable
  • --extra-virtualenv-arg β€” extra arg for the virtualenv executable
  • --index-url β€” base URL for PyPI server
  • --setuptools β€” use setuptools instead of distribute
  • --install-suffix=SUFFIX β€” override virtualenv installation suffix
  • --upgrade-pip β€” force upgrade pip in virtualenv
  • --requirements=FILE β€” use FILE for requirements
  • --setuptools-test β€” run setup.py test upon build
  • --python=PATH β€” use Python interpreter at PATH
  • --builtin-venv β€” use built-in venv of Python 3
  • --skip-install β€” don't run pip install .

🧚 QUICK GUIDE FOR MAINTAINERS 🧚

okay this part is for the maintainers, but I got you, it's short and sweet:

  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

🌈 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 (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