dh-virtualenv icon indicating copy to clipboard operation
dh-virtualenv copied to clipboard

[feature] Make dh-virtualenv usable from PyPI

Open jhermann opened this issue 5 years ago • 0 comments

Basic idea: Add dh-virtualenv as a tool to your dependencies, and enjoy a 'bdist_deb' setuptools command, ready to run.

Goal: Easier adoption, especially for 'simple' projects.

Assumptions:

  • There is a way to ‘spontaneously’ add the new step to debhelper (maybe via rules)
  • debhelper finds the local (project venv) dh-virtualenv, maybe with some nudging

Major TODOs:

  • Add glue code for the bdist_deb setuptools command (with a --docker-from=… option for container builds).
  • Add code that generates missing debian/ directory or necessary files ⇒ could be an extra ticket and its own feature.

Open questions:

  • The integration into debhelper needs experimentation, the rest is "just work". sudo dh_virtualenv --setup-system might be a viable solution.

jhermann avatar Oct 01 '18 12:10 jhermann