Skip to content

Don't pass interpreter option -p to venv

Steffen Müthing requested to merge bugfix/virtualenv-creation-with-venv into master

While virtualenv needs the -p option to correctly set the Python interpreter, venv does not even have that option and fails when called with it.

This patch resolves the problem by only passing -p if virtualenv is used for setting up the environment.

This needs backporting to 2.7.

Merge request reports