diff --git a/docs/wrappers/python.md b/docs/wrappers/python.md index ded28b0fa9..0b7af37532 100644 --- a/docs/wrappers/python.md +++ b/docs/wrappers/python.md @@ -174,6 +174,17 @@ Set either to 0 or 1. Default is 0. If set to 1 then your model will be saved pe # Advanced Usage +## Local Python Dependencies +```from version 0.5-SNAPSHOT``` + +To use a private repository for installing Python dependencies use the following build command: + +```bash +s2i build -i :/whl seldonio/seldon-core-s2i-python2:0.5-SNAPSHOT +``` + +This command will look for local Python wheels in the `````` and use these before searching PyPI. + ## Custom Metrics ```from version 0.3``` diff --git a/wrappers/s2i/python/s2i/bin/assemble b/wrappers/s2i/python/s2i/bin/assemble index 1ed579a84f..86e49c7e02 100755 --- a/wrappers/s2i/python/s2i/bin/assemble +++ b/wrappers/s2i/python/s2i/bin/assemble @@ -52,9 +52,9 @@ cp -Rf /tmp/src/. ./ if [[ -f requirements.txt ]]; then echo "---> Installing dependencies ..." - pip install -r requirements.txt + pip install --find-links /whl -r requirements.txt elif [[ -f setup.py ]]; then echo "---> Installing application ..." - python setup.py develop + pip install --find-links /whl -e . fi