summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-03-23 20:30:02 +0100
committerFlorian Bruhin <me@the-compiler.org>2020-04-03 14:37:22 +0200
commit7f70988ad745adecc0c8b5a137e51250d3228c9f (patch)
tree8f85e370648538419bdb228f3bf4d5e32f914598
parent747b9049cadb6bc112858c2d1a46e897e971461d (diff)
downloadqutebrowser-7f70988ad745adecc0c8b5a137e51250d3228c9f.tar.gz
qutebrowser-7f70988ad745adecc0c8b5a137e51250d3228c9f.zip
mkvenv: Run python rather than python3 in virtualenv
Windows only has a "python" executable there, not "python3". (cherry picked from commit 793961350e28434c8253ed9ddc83e756ea822dbf)
-rw-r--r--scripts/mkvenv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mkvenv.py b/scripts/mkvenv.py
index 15f525f37..3a62cd801 100644
--- a/scripts/mkvenv.py
+++ b/scripts/mkvenv.py
@@ -103,7 +103,7 @@ def pip_install(venv_dir: pathlib.Path, *args: str) -> None:
"""Run a pip install command inside the virtualenv."""
arg_str = ' '.join(str(arg) for arg in args)
utils.print_col('venv$ pip install {}'.format(arg_str), 'blue')
- run_venv(venv_dir, 'python3', '-m', 'pip', 'install', *args)
+ run_venv(venv_dir, 'python', '-m', 'pip', 'install', *args)
def show_tox_error(pyqt_type: str) -> None:
@@ -240,7 +240,7 @@ def regenerate_docs(venv_dir: pathlib.Path,
utils.print_col('venv$ python3 scripts/asciidoc2html.py {}'
.format(' '.join(a2h_args)), 'blue')
- run_venv(venv_dir, 'python3', str(script_path), *a2h_args)
+ run_venv(venv_dir, 'python', str(script_path), *a2h_args)
def main() -> None: