mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
18 lines
635 B
Plaintext
Executable File
18 lines
635 B
Plaintext
Executable File
set +e
|
|
# Install dependencies with Pip.
|
|
bpwatch start pip_uninstall
|
|
if [[ -f .heroku/python/requirements-declared.txt ]]; then
|
|
|
|
cp .heroku/python/requirements-declared.txt requirements-declared.txt
|
|
|
|
pip-diff --stale requirements-declared.txt requirements.txt --exclude setuptools pip > .heroku/python/requirements-stale.txt
|
|
|
|
rm -fr requirements-declared.txt
|
|
|
|
if [[ -s .heroku/python/requirements-stale.txt ]]; then
|
|
puts-step "Uninstalling stale dependencies"
|
|
/app/.heroku/python/bin/pip uninstall -r .heroku/python/requirements-stale.txt -y --exists-action=w | cleanup | indent
|
|
fi
|
|
fi
|
|
bpwatch stop pip_uninstall
|
|
set -e |