-
Samuel Spencer authored
* Allow environment variables during pip install, fixes #416 * shift sub-env command, fix typo * bash check thingy fixed
Samuel Spencer authored* Allow environment variables during pip install, fixes #416 * shift sub-env command, fix typo * bash check thingy fixed
pipenv 605 B
#!/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 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