mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
d4b8c2aeda
* fixed the bug for pypy-5.8.0 * update changelog Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * blacklist for old apps Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * only blacklist pythonhome/path Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * updated changelog Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * be more agressive with blacklisting Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * sub_env was a terrible idea Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * changelog update Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
27 lines
710 B
Bash
Executable File
27 lines
710 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ ! "$SKIP_PIP_INSTALL" ]; then
|
|
|
|
# Install dependencies with Pip.
|
|
puts-step "Installing requirements with pip"
|
|
|
|
set +e
|
|
|
|
/app/.heroku/python/bin/pip install -r "$BUILD_DIR/requirements.txt" --exists-action=w --src=/app/.heroku/src --disable-pip-version-check --no-cache-dir 2>&1 | tee "$WARNINGS_LOG" | cleanup | indent
|
|
PIP_STATUS="${PIPESTATUS[0]}"
|
|
set -e
|
|
|
|
show-warnings
|
|
|
|
if [[ ! $PIP_STATUS -eq 0 ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
|
|
# Smart Requirements handling
|
|
cp requirements.txt .heroku/python/requirements-declared.txt
|
|
/app/.heroku/python/bin/pip freeze --disable-pip-version-check > .heroku/python/requirements-installed.txt
|
|
|
|
echo
|
|
fi
|