summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-01-04 20:13:48 +0100
committerFlorian Bruhin <me@the-compiler.org>2020-01-04 21:57:08 +0100
commit5c35d98b13d8723f81d27dd3342d85c2b768eb7c (patch)
tree7176ea0c68e3261ec93b120453bf3fe9486e994d
parent1d0005f493362f6d7e64c866069dce3208c6489c (diff)
downloadqutebrowser-5c35d98b13d8723f81d27dd3342d85c2b768eb7c.tar.gz
qutebrowser-5c35d98b13d8723f81d27dd3342d85c2b768eb7c.zip
recompile_requirements: Use python -m venv
-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)