diff options
-rw-r--r-- | scripts/dev/recompile_requirements.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/dev/recompile_requirements.py b/scripts/dev/recompile_requirements.py index 74040814d..125ebed9f 100644 --- a/scripts/dev/recompile_requirements.py +++ b/scripts/dev/recompile_requirements.py @@ -114,7 +114,15 @@ def main(): else: outfile = os.path.join(REQ_DIR, 'requirements-{}.txt'.format(name)) - host_python = sys.executable + if name in [ + # Need sip v4 which doesn't work on Python 3.8 + 'pyqt-5.7', 'pyqt-5.9', 'pyqt-5.10', 'pyqt-5.11', 'pyqt-5.12', + # Installs typed_ast on < 3.8 only + 'pylint', + ]: + host_python = 'python3.7' + else: + host_python = sys.executable with tempfile.TemporaryDirectory() as tmpdir: subprocess.run([host_python, '-m', 'venv', tmpdir], check=True) |