summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/dev/recompile_requirements.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/dev/recompile_requirements.py b/scripts/dev/recompile_requirements.py
index e4aa6229b..74040814d 100644
--- a/scripts/dev/recompile_requirements.py
+++ b/scripts/dev/recompile_requirements.py
@@ -114,9 +114,12 @@ def main():
else:
outfile = os.path.join(REQ_DIR, 'requirements-{}.txt'.format(name))
+ host_python = sys.executable
+
with tempfile.TemporaryDirectory() as tmpdir:
+ subprocess.run([host_python, '-m', 'venv', tmpdir], check=True)
+
pip_bin = os.path.join(tmpdir, 'bin', 'pip')
- subprocess.run(['virtualenv', tmpdir], check=True)
subprocess.run([pip_bin, 'install', '-r', filename], check=True)
proc = subprocess.run([pip_bin, 'freeze'], check=True,
stdout=subprocess.PIPE)