Try and avoid relying on global virtualenv command

This commit is contained in:
Thomas Robitaille
2019-09-10 09:40:20 +01:00
parent d4732130a7
commit 2e3bc016b4
+1 -1
View File
@@ -125,7 +125,7 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef
# there are no dependencies that were pulled in at build time.
call(['pip', 'install', 'virtualenv'], env=env)
venv_dir = tempfile.mkdtemp()
call(['virtualenv', venv_dir], env=env)
call(['python', '-m', 'virtualenv', venv_dir], env=env)
env['PATH'] = os.pathsep.join([os.path.join(venv_dir, 'bin'), env['PATH']])
# check that we are using the Python from the virtual environment