Shortcut from virtualenv to venv for python2
Project description
Provides a simple “shortcut” from virtualenv to venv on python 2.
Pretty much everything I do is in python3, where I use venv for every single project I work on.
Occasionally I need my CI to also test / build / deploy to python2 as well. As is stands, I generally end up with annoyingly complex startups scripts in ci that has to check which version is being being run and then either use python -m venv .venv on 3 or python -m pip install virtualenv; python -m virtualenv .venv for 2.
It would be much better if I could just use python -m venv .venv everywhere, but venv has not been backported. This package is a pretty decent workaround.
py2venv can be pre-installed on any python. On python3 it does nothing. On python 2 it ensures virtualenv has been installed and provides a ‘venv’ module entrypoint:
python -m pip install py2venv python -m venv .venv
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file py2venv-1.1.tar.gz
.
File metadata
- Download URL: py2venv-1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8b3245362c362ffe81d66a2ce13be82da4c51e84ed5cbc19844ec84600c1dc89
|
|
MD5 |
60700576a49f687f3ab24dfb610497f2
|
|
BLAKE2b-256 |
bccd97339b0b0932c2a9cddc972b71375e4e66d769fb5f39eefa556c57952846
|