mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
Generate per python version virtualenv
This commit is contained in:
parent
daf7138f36
commit
00cf7452ef
2 changed files with 2 additions and 2 deletions
|
@ -9,4 +9,4 @@ set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
rm -rf target/
|
rm -rf target/
|
||||||
rm -rf python/_virtualenv/
|
rm -rf python/_virtualenv*/
|
||||||
|
|
|
@ -145,7 +145,7 @@ def wptserve_path(is_firefox, topdir, *paths):
|
||||||
|
|
||||||
|
|
||||||
def _activate_virtualenv(topdir, is_firefox):
|
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)
|
check_exec_path = lambda path: path.startswith(virtualenv_path)
|
||||||
python = sys.executable # If there was no python, mach wouldn't have run at all!
|
python = sys.executable # If there was no python, mach wouldn't have run at all!
|
||||||
if not python:
|
if not python:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue