refactor: configure PIP cache directory
To remedy errors we are seeing with intermittent package installation
from PyPi, introduce a PIP cache directory to the project filer. This
should allow Jenkins to share cached packages across nodes.
Change-Id: I9f607da75ebc7f6dc9b3de0f21a4c87bbfe02405
Signed-off-by: Chris Kay <chris.kay@arm.com>
diff --git a/script/install_python_deps_tf.sh b/script/install_python_deps_tf.sh
index 1103181..49963a6 100644
--- a/script/install_python_deps_tf.sh
+++ b/script/install_python_deps_tf.sh
@@ -7,5 +7,6 @@
#
python3 -m venv .venv && \
- . .venv/bin/activate && \
- python3 -m pip install -r "$tf_root/docs/requirements.txt"
+ source .venv/bin/activate && \
+ python3 -m pip install -r "${tf_root}/docs/requirements.txt" \
+ --cache-dir "${project_filer}/pip-cache" --retries 30 --verbose