aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Goodbody <andrew.goodbody@linaro.org>2023-01-26 15:17:51 +0000
committerAndrew Goodbody <andrew.goodbody@linaro.org>2023-01-26 15:17:51 +0000
commitc74ffd58f12998584cc5bbe4d1cb692819efbc79 (patch)
treec137d3fb9422cdbb3c45ba7e5526fc1b06e43e62
parent7c86eaee288ae9f741ba084885d1645bfbaf3bb8 (diff)
ldcg-python-manylinux-tensorflow: Prevent pkg conflicts with nightly
Prevent the loading of release packages when nightly versions of those packages are to be used on the git build Change-Id: I7257ddcdc998e93e8c6601c3a007f9139418a90d
-rw-r--r--ldcg-python-manylinux-tensorflow/ansible/roles/tensorflow/templates/upper-constraints.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/ldcg-python-manylinux-tensorflow/ansible/roles/tensorflow/templates/upper-constraints.txt b/ldcg-python-manylinux-tensorflow/ansible/roles/tensorflow/templates/upper-constraints.txt
index e945015a09..fdcc602a3f 100644
--- a/ldcg-python-manylinux-tensorflow/ansible/roles/tensorflow/templates/upper-constraints.txt
+++ b/ldcg-python-manylinux-tensorflow/ansible/roles/tensorflow/templates/upper-constraints.txt
@@ -8,9 +8,10 @@ grpcio{{ grpcio_version }}
h5py{{ h5py_version }}
numpy{{ numpy_version }}
absl-py{{ absl_version }}
-keras{{ keras_version }}
-tensorboard{{ tensorboard_version }}
-tensorflow-estimator{{ tensorflow_estimator_version }}
+# Entries for non-git build
+{{ (tensorflow_version != "git") | ternary('keras' + keras_version, '') }}
+{{ (tensorflow_version != "git") | ternary('tensorboard' + tensorboard_version, '') }}
+{{ (tensorflow_version != "git") | ternary('tensorflow-estimator' + tensorflow_estimator_version, '') }}
# entries needed for unit tests
scipy{{ scipy_version }}