5 ms·
Python comes with built-in venv support since 3.3: https://docs.python.org/3/library/venv.html https://docs.python.org/3/library/venv.html
by abiogenesis 6y ago
Python comes with built-in venv support since 3.3: https://docs.python.org/3/library/venv.html https://docs.python.org/3/library/venv.html
- AlphaSite 6y agoDeviant packaging breaks/removes this.
- erfgh 6y agoThat's why it's deviant.
- Conan_Kudo 6y agoI assume the poster meant "Debian packaging", but yes. Debian and Ubuntu remove venv support along with distutils from the standard library by default.
- regularfry 6y agoThis is annoying, but it does encourage the principle of "the system python is for the system, and only incidentally for the users of that system". I'm almost always in a non-system Python for anything interesting, unless I'm writing something to integrate with the OS.
- Conan_Kudo 6y agoIt breaks interrogation of the Python interpreter, since those functions are part of distutils. It also breaks creating virtualenvs if it relies on the venv module.
- regularfry 6y agoYeah, it creates a bootstrap problem that wouldn't exist otherwise. I'm pretty much of a mind that meta-tools like venv shouldn't be written in the language they target, precisely to avoid problems like this.
- Conan_Kudo 6y agoWell, if it's a standard library function, it should not matter what language it's written in. The _intent_ is to make it accessible to everyone, and Debian breaks that assumption.
- abiogenesis 6y agoAnnoying, but it can still be installed as an optional package (sudo apt install python3-venv).