diff --git a/wrappers/s2i/python/s2i/bin/assemble b/wrappers/s2i/python/s2i/bin/assemble index 86e49c7e02..89ed08505c 100755 --- a/wrappers/s2i/python/s2i/bin/assemble +++ b/wrappers/s2i/python/s2i/bin/assemble @@ -51,6 +51,12 @@ echo "---> Installing application source..." cp -Rf /tmp/src/. ./ if [[ -f requirements.txt ]]; then + + if [[ -n "$EXTRA_INDEX_URL" ]]; then + echo "---> Adding extra index url to pip..." + pip config set global.extra-index-url "${EXTRA_INDEX_URL}" + fi + echo "---> Installing dependencies ..." pip install --find-links /whl -r requirements.txt elif [[ -f setup.py ]]; then