mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
085d295342
This reverts commit 3c2839147f.
16 lines
602 B
Plaintext
Executable File
16 lines
602 B
Plaintext
Executable File
# Install dependencies with Pip.
|
|
puts-step "Installing dependencies with pip"
|
|
|
|
[ ! "$FRESH_PYTHON" ] && bpwatch start pip_install
|
|
[ "$FRESH_PYTHON" ] && bpwatch start pip_install_first
|
|
|
|
/app/.heroku/python/bin/pip install -r requirements.txt --exists-action=w --src=./.heroku/src --allow-all-external | cleanup | indent
|
|
|
|
# Smart Requirements handling
|
|
cp requirements.txt .heroku/python/requirements-declared.txt
|
|
/app/.heroku/python/bin/pip freeze > .heroku/python/requirements-installed.txt
|
|
|
|
[ ! "$FRESH_PYTHON" ] && bpwatch stop pip_install
|
|
[ "$FRESH_PYTHON" ] && bpwatch stop pip_install_first
|
|
|
|
echo |