diff options
author | Simo Fält <simo.falt@qt.io> | 2020-11-30 14:40:36 +0200 |
---|---|---|
committer | Simo Fält <simo.falt@qt.io> | 2020-11-30 12:53:48 +0000 |
commit | 030df46c83c12216eb63c280aa3390cc3ab4ea27 (patch) | |
tree | f10f305d680b1d8a1ffa9e0ef9649d243962d552 /coin_build_instructions.py | |
parent | 6635c196f3813f722c3498ecd98a4fbf4bf14741 (diff) |
Pin numpy as 1.19.3 for windows
Change-Id: I244198d9ea878c6c4f976cb0080842dd023d2941
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'coin_build_instructions.py')
-rw-r--r-- | coin_build_instructions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/coin_build_instructions.py b/coin_build_instructions.py index b89bf850e..8375913b5 100644 --- a/coin_build_instructions.py +++ b/coin_build_instructions.py @@ -127,6 +127,10 @@ def call_setup(python_ver, phase): # When the 'python_ver' variable is empty, we are using Python 2 # Pip is always upgraded when CI template is provisioned, upgrading it in later phase may cause perm issue run_instruction([env_pip, "install", "-r", "requirements.txt"], "Failed to install dependencies") + if sys.platform == "win32": + run_instruction([env_pip, "install", "numpy==1.19.3"], "Failed to install numpy 1.19.3") + else: + run_instruction([env_pip, "install", "numpy"], "Failed to install numpy") cmd = [env_python, "-u", "setup.py"] if phase in ["BUILD"]: |