Skip to content

Commit

Permalink
Merge pull request #332 from jklaise/python-local-deps
Browse files Browse the repository at this point in the history
Enable support for using local Python binaries when wrapping components
  • Loading branch information
jklaise authored Dec 19, 2018
2 parents d019f59 + 3642c23 commit c7495cc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions docs/wrappers/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <python-wheel-folder>:/whl <src-folder> seldonio/seldon-core-s2i-python2:0.5-SNAPSHOT <my-image-name>
```

This command will look for local Python wheels in the ```<python-wheel-folder>``` and use these before searching PyPI.

## Custom Metrics
```from version 0.3```

Expand Down
4 changes: 2 additions & 2 deletions wrappers/s2i/python/s2i/bin/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c7495cc

Please sign in to comment.