diff options
author | Simo Fält <simo.falt@qt.io> | 2020-05-08 12:01:48 +0300 |
---|---|---|
committer | Simo Fält <simo.falt@qt.io> | 2020-05-13 14:08:42 +0300 |
commit | a18a30476efc78596b590caddeb8932f862b47b4 (patch) | |
tree | 73f52bd39f9ac07be974767987e66540024bf64b /coin_build_instructions.py | |
parent | 7c45be58950b620805dafe6e6a1281d3cdba5200 (diff) |
Install pip packages from requirements.txt files
Change-Id: I16beba02a12c6c1f656e7a92696e9a6741989a39
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'coin_build_instructions.py')
-rw-r--r-- | coin_build_instructions.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/coin_build_instructions.py b/coin_build_instructions.py index 7d4d07289..5c3033b04 100644 --- a/coin_build_instructions.py +++ b/coin_build_instructions.py @@ -113,13 +113,8 @@ def call_setup(python_ver, phase): run_instruction(["pip", "install", "--user", "virtualenv==20.0.20"], "Failed to pin virtualenv") 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 # Pip is always upgraded when CI template is provisioned, upgrading it in later phase may cause perm issue - upgrade_pip = True if CI_HOST_OS == "Linux" else False - install_pip_dependencies(env_pip, ["pip"], upgrade_pip) - install_pip_dependencies(env_pip, ["numpy" if python_ver else "numpy==1.16.6", - "setuptools" if python_ver else "setuptools==44.0.0", - "sphinx", "six", "wheel"]) + run_instruction([env_pip, "install", "-r", "requirements.txt"], "Failed to install dependencies") cmd = [env_python, "-u", "setup.py"] if phase in ["BUILD"]: |