dh_virtualenv package
Debian packaging sequence for Python virtualenvs.
Submodules
dh_virtualenv.cmdline module
Helpers to handle debhelper command line options.
- class dh_virtualenv.cmdline.DebhelperOptionParser(usage=None, option_list=None, option_class=<class 'optparse.Option'>, version=None, conflict_handler='error', description=None, formatter=None, add_help_option=True, prog=None, epilog=None)[source]
Bases:
OptionParserSpecial OptionParser for handling Debhelper options.
Basically this means converting -O--option to --option before parsing.
dh_virtualenv.deployment module
- class dh_virtualenv.deployment.Deployment(package, extra_urls=[], preinstall=[], extras=[], pip_tool='pip', upgrade_pip=False, index_url=None, setuptools=False, python=None, builtin_venv=False, sourcedirectory=None, verbose=False, extra_pip_arg=[], extra_virtualenv_arg=[], use_system_packages=False, skip_install=False, install_suffix=None, requirements_filename='requirements.txt', upgrade_pip_to='')[source]
Bases:
object- fix_activate_path()[source]
Replace the build path of the virtualenv in the bin/activate* scripts with its post-install path.
venv and virtualenv write the path in a different place for each shell, and recent versions indent it inside case or if blocks, so replace the path itself instead of matching each assignment.