mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 17f992a106 | |||
| 24895082d3 | |||
| 002780c2d9 | |||
| df7f8f3507 | |||
| 312a468cce | |||
| d4b8c2aeda |
+23
-6
@@ -1,5 +1,22 @@
|
||||
# Python Buildpack Changelog
|
||||
|
||||
# 117
|
||||
|
||||
Bug fix.
|
||||
|
||||
# 116
|
||||
|
||||
Vendoring improvements.
|
||||
|
||||
- Geos libraries should work on Heroku-16 now.
|
||||
- The libffi/libmemcached vendoring step is now skipped on Heroku-16 (since they are installed in the base image).
|
||||
|
||||
# 115
|
||||
|
||||
Revert a pull request.
|
||||
|
||||
- No longer using `sub_env` for `pip install` step.
|
||||
|
||||
# 114
|
||||
|
||||
- Bugfixes.
|
||||
@@ -8,7 +25,7 @@ Blacklisting `PYTHONHOME` and `PYTHONPATH` for older apps. Upgrades to nltk supp
|
||||
|
||||
# 113
|
||||
|
||||
- Updates to Pipenv support.
|
||||
Updates to Pipenv support.
|
||||
|
||||
# 112
|
||||
|
||||
@@ -22,17 +39,17 @@ Linting, bugfixes.
|
||||
|
||||
# 110
|
||||
|
||||
Update default Python to 3.6.2.
|
||||
|
||||
# 109
|
||||
|
||||
Update Default Python to 3.6.1, bugfixes.
|
||||
|
||||
- Fixed automatic pip uninstall of dependencies removed from requirements.txt.
|
||||
|
||||
# 109
|
||||
|
||||
Fix output for collectstatic step.
|
||||
|
||||
# 108
|
||||
|
||||
Updated setuptools.
|
||||
Fix output for collectstatic step.
|
||||
|
||||
# 107
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This script serves as the Cryptography build step of the
|
||||
# This script serves as the cffi build step of the
|
||||
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python)
|
||||
# compiler.
|
||||
#
|
||||
@@ -9,6 +9,11 @@
|
||||
#
|
||||
# This script is invoked by [`bin/compile`](/).
|
||||
|
||||
if [[ "$STACK" == "heroku-16" ]]; then
|
||||
# libffi is pre-installed in the stack image so there is no need to vendor it.
|
||||
return 0
|
||||
fi
|
||||
|
||||
# The location of the pre-compiled libffi binary.
|
||||
VENDORED_LIBFFI="https://lang-python.s3.amazonaws.com/$STACK/libraries/vendor/libffi.tar.gz"
|
||||
|
||||
|
||||
@@ -30,6 +30,12 @@ if [[ "$BUILD_WITH_GEO_LIBRARIES" ]]; then
|
||||
curl "$VENDORED_GDAL" -s | tar zxv -C .heroku/vendor &> /dev/null
|
||||
curl "$VENDORED_GEOS" -s | tar zxv -C .heroku/vendor &> /dev/null
|
||||
curl "$VENDORED_PROJ" -s | tar zxv -C .heroku/vendor &> /dev/null
|
||||
|
||||
# Copy libjasper from build image to slug.
|
||||
if [[ "$STACK" == "heroku-16" ]]; then
|
||||
cp /usr/lib/x86_64-linux-gnu/libjasper.so* ".heroku/vendor/lib/."
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
GDAL=$(pwd)/vendor
|
||||
|
||||
@@ -6,10 +6,8 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
|
||||
puts-step "Installing requirements with pip"
|
||||
|
||||
set +e
|
||||
BLACKLIST='PYTHONHOME|PYTHONPATH'
|
||||
export BLACKLIST
|
||||
|
||||
sub_env /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
|
||||
/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
|
||||
|
||||
|
||||
+5
-1
@@ -9,6 +9,11 @@
|
||||
#
|
||||
# This script is invoked by [`bin/compile`](/).
|
||||
|
||||
if [[ "$STACK" == "heroku-16" ]]; then
|
||||
# libmemcached is pre-installed in the stack image so there is no need to vendor it.
|
||||
return 0
|
||||
fi
|
||||
|
||||
# The location of the pre-compiled libmemcached binary.
|
||||
VENDORED_MEMCACHED="https://lang-python.s3.amazonaws.com/$STACK/libraries/vendor/libmemcache.tar.gz"
|
||||
|
||||
@@ -16,7 +21,6 @@ VENDORED_MEMCACHED="https://lang-python.s3.amazonaws.com/$STACK/libraries/vendor
|
||||
# shellcheck source=bin/utils
|
||||
source "$BIN_DIR/utils"
|
||||
|
||||
|
||||
# If pylibmc exists within requirements, use vendored libmemcached.
|
||||
if (pip-grep -s requirements.txt pylibmc &> /dev/null) then
|
||||
|
||||
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
cffi
|
||||
Reference in New Issue
Block a user