aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2020-04-03 14:17:31 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-04-06 10:10:20 +0200
commite669e80e232f88121308a32a5401edc91a9bbff2 (patch)
tree004309cb3dd9dfcf80630eb3b4d3e4e9bc69b0c6
parent9ae63824a5ec550e82561b9f07fc6307ae1f3cec (diff)
ci: pin numpy version for Python 2.7
Numpy 1.16.6 was the last version that supports Python 2.7 Change-Id: I43f401a6da350b874b2b25114fdc6d9fd07f69ef Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--coin_build_instructions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/coin_build_instructions.py b/coin_build_instructions.py
index 95bd4eba2..325b02dec 100644
--- a/coin_build_instructions.py
+++ b/coin_build_instructions.py
@@ -112,7 +112,8 @@ def call_setup(python_ver, phase):
run_instruction(["virtualenv", "-p", _pExe, _env], "Failed to create virtualenv")
# When the 'python_ver' variable is empty, we are using Python 2
# setuptools from v45+ removed the support for Python 2, so we pin an old release
- install_pip_dependencies(env_pip, ["pip", "numpy",
+ install_pip_dependencies(env_pip, ["pip",
+ "numpy" if python_ver else "numpy==1.16.6",
"setuptools" if python_ver else "setuptools==44.0.0",
"sphinx", "six", "wheel"])