aboutsummaryrefslogtreecommitdiffstats
path: root/coin_test_instructions.py
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@qt.io>2020-05-08 12:01:48 +0300
committerSimo Fält <simo.falt@qt.io>2020-05-13 14:08:42 +0300
commita18a30476efc78596b590caddeb8932f862b47b4 (patch)
tree73f52bd39f9ac07be974767987e66540024bf64b /coin_test_instructions.py
parent7c45be58950b620805dafe6e6a1281d3cdba5200 (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_test_instructions.py')
-rw-r--r--coin_test_instructions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/coin_test_instructions.py b/coin_test_instructions.py
index 0bc0be783..c3752cb9f 100644
--- a/coin_test_instructions.py
+++ b/coin_test_instructions.py
@@ -67,9 +67,9 @@ def call_testrunner(python_ver, buildnro):
# Pinning the virtualenv before creating one
run_instruction(["pip", "install", "--user", "virtualenv==20.0.20"], "Failed to pin virtualenv")
run_instruction(["virtualenv", "-p", _pExe, _env], "Failed to create virtualenv")
- upgrade_pip = True if CI_HOST_OS == "Linux" else False
- install_pip_dependencies(env_pip, ["pip"], upgrade_pip)
- install_pip_dependencies(env_pip, ["numpy", "PyOpenGL", "setuptools", "six", "pyinstaller==3.6", "wheel"])
+ # 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")
cmd = [env_python, "testrunner.py", "test",
"--blacklist", "build_history/blacklist.txt",
"--buildno=" + buildnro]