mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
a1ed1d7b42
* skip pip install for pipenv * better * improvements * indent * chmod +x * export * skip uninstall too * pip freeze * Revert "skip uninstall too" This reverts commit faac96f62004f78c3d27a92cd865954fc7a3a53d. * better comments * redirect stderr to stdout
19 lines
583 B
Plaintext
19 lines
583 B
Plaintext
# Pipenv support (Generate requriements.txt with pipenv).
|
|
if [[ -f Pipfile ]]; then
|
|
if [[ ! -f requirements.txt ]]; then
|
|
puts-step "Installing requirements with latest pipenv..."
|
|
|
|
# Install pipenv.
|
|
/app/.heroku/python/bin/pip install pipenv --upgrade &> /dev/null
|
|
|
|
# Install the dependencies.
|
|
/app/.heroku/python/bin/pipenv install --system 2>&1 | indent
|
|
|
|
# Skip pip install, later.
|
|
export SKIP_PIP_INSTALL=1
|
|
|
|
# Pip freeze, for compatibility.
|
|
/app/.heroku/python/bin/pip freeze > requirements.txt
|
|
|
|
fi
|
|
fi |