mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
26 lines
719 B
Bash
Executable File
26 lines
719 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set +e
|
|
# Install dependencies with Pip.
|
|
# shellcheck source=bin/utils
|
|
source $BIN_DIR/utils
|
|
|
|
if [ ! "$SKIP_PIP_INSTALL" ]; then
|
|
|
|
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 wheel > .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
|
|
|
|
fi
|
|
set -e
|