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 038eba6 commit 7becc69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wrappers/s2i/python-conda/s2i/bin/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ 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 system-wide dependencies ..."
pip install --find-links /whl -r requirements.txt
elif [[ -f setup.py ]]; then
Expand Down

0 comments on commit 7becc69

Please sign in to comment.