Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable support for using local Python binaries when wrapping components #332

Merged
merged 3 commits into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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