mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
c550143a59
Not super urgent, but seeing as it closes #927, might as well do now. [skip changelog]
29 lines
808 B
Bash
Executable File
29 lines
808 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
|
|
|
|
|
|
if ! pip-diff --stale requirements-declared.txt requirements.txt --exclude setuptools pip wheel > .heroku/python/requirements-stale.txt; then
|
|
mcount "failure.bad-requirements"
|
|
fi
|
|
|
|
rm -rf 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 --disable-pip-version-check | cleanup | indent
|
|
fi
|
|
fi
|
|
|
|
fi
|
|
set -e
|