Hacker GitHub

← All repos

spotify/dh-virtualenv

View on GitHub ↗ ★ 1,629 Python

Python virtualenvs in Debian packages

9 mentions on Hacker News by 8 people: 0 stories, 9 comments · first 2014-11-14 · latest 2021-11-16

Mentions per year 9 mentions · busiest year 2015 (3)
20082026
  1. there's https://github.com/spotify/dh-virtualenv
  2. …apt/debs, we then turn around and wrap that whl in a deb using Spotify's excellent dh-virtualenv: https://github.com/spotify/dh-virtualenv There's no expertise for Bazel in-house; when we run the build, it seems to fail all its cache hits…
    comment by mikepurvis · 2021-05-21 · in What to do about GPU packages on PyPI?
  3. I recently came across this: https://github.com/spotify/dh-virtualenv For a system utility, you can still use virtualenvs. The launcher script just needs to use a shebang like: #!/usr/share/spiffyapp/venv/bin/python
  4. Perhaps this is useful for you? https://github.com/spotify/dh-virtualenv
  5. …package (debian/rules): override_dh_virtualenv: dh_virtualenv -p myproj --use-system-packages [1] https://github.com/spotify/dh-virtualenv [2] https://packages.debian.org/jessie/python/python-virtualenv
    comment by rkv · 2016-03-08 · in Python Patterns (2013)
  6. Note that the base path /usr/share/python (that dh-virtualenv ships with) is a bad choice; see https://github.com/spotify/dh-virtualenv/issues/82 for a discussion. You can set a different base path in debian/rules with export…
    comment by perlgeek · 2015-07-10 · in How We Deploy Python Code
  7. You can build debian packages that way; dh-virtualenv ( https://github.com/spotify/dh-virtualenv ) makes it quite easy to pack a full virtualenv into a .deb.
  8. …https://github.com/kevinconway/rpmvenv * [3] https://pex.readthedocs.org/en/latest/ * Another tool: https://github.com/spotify/dh-virtualenv
  9. You could also try virtualenvs inside Debian packages: https://github.com/spotify/dh-virtualenv One reason to keep virtualenvs is that the system Python (VM or container) includes extra Python packages that your app may or may not need. If…