Generate per python version virtualenv

This commit is contained in:
marmeladema 2019-10-22 11:59:10 +01:00
parent daf7138f36
commit 00cf7452ef
2 changed files with 2 additions and 2 deletions

View file

@ -9,4 +9,4 @@ set -o nounset
set -o pipefail
rm -rf target/
rm -rf python/_virtualenv/
rm -rf python/_virtualenv*/

View file

@ -145,7 +145,7 @@ def wptserve_path(is_firefox, topdir, *paths):
def _activate_virtualenv(topdir, is_firefox):
virtualenv_path = os.path.join(topdir, "python", "_virtualenv")
virtualenv_path = os.path.join(topdir, "python", "_virtualenv%d.%d" % (sys.version_info[0], sys.version_info[1]))
check_exec_path = lambda path: path.startswith(virtualenv_path)
python = sys.executable # If there was no python, mach wouldn't have run at all!
if not python: