In cases where global REQUIREMENTS_DIR is set, use it
instead of overwriting it. This is particularly needed
in cases where users of pip_install wrapper have the
upper-constraints.txt at another location.
Change-Id: I34e9f94548c575e1af5bca9655a3b7d1915375a8
Signed-off-by: Flavio Fernandes <flaviof@redhat.com>
... | ... |
@@ -240,7 +240,7 @@ WSGI_MODE=${WSGI_MODE:-"uwsgi"} |
240 | 240 |
GIT_BASE=${GIT_BASE:-https://opendev.org} |
241 | 241 |
|
242 | 242 |
# The location of REQUIREMENTS once cloned |
243 |
-REQUIREMENTS_DIR=$DEST/requirements |
|
243 |
+REQUIREMENTS_DIR=${REQUIREMENTS_DIR:-$DEST/requirements} |
|
244 | 244 |
|
245 | 245 |
# Which libraries should we install from git instead of using released |
246 | 246 |
# versions on pypi? |