Skip to content

Commit

Permalink
Adding a way to pass extra index urls to s2i python wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen Pandey authored and seldondev committed Dec 11, 2019
1 parent 5bf3894 commit 038eba6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wrappers/s2i/python/s2i/bin/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 038eba6

Please sign in to comment.