Don't pass interpreter option -p to venv
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.