mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
4723abb896
* fixed the bug for pypy-5.8.0 * update pipenv support Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
22 lines
617 B
Bash
22 lines
617 B
Bash
#!/usr/bin/env bash
|
|
|
|
# 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 --skip-lock 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
|