Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
heroku-buildpack-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evili del Rio i Silvan
heroku-buildpack-python
Commits
fd19ec2c
Commit
fd19ec2c
authored
10 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
support for cryptography!
parent
6aec3ed3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/compile
+3
-0
3 additions, 0 deletions
bin/compile
bin/steps/cryptography
+39
-0
39 additions, 0 deletions
bin/steps/cryptography
with
42 additions
and
0 deletions
bin/compile
+
3
−
0
View file @
fd19ec2c
...
...
@@ -159,6 +159,9 @@ source $BIN_DIR/steps/mercurial
# Pylibmc support.
source
$BIN_DIR
/steps/pylibmc
# Libffi support.
source
$BIN_DIR
/steps/cryptography
# Install dependencies with Pip.
source
$BIN_DIR
/steps/pip-install
...
...
This diff is collapsed.
Click to expand it.
bin/steps/cryptography
0 → 100755
+
39
−
0
View file @
fd19ec2c
#!/usr/bin/env bash
# This script serves as the Pylibmc build step of the
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python)
# compiler.
#
# A [buildpack](http://devcenter.heroku.com/articles/buildpacks) is an
# adapter between a Python application and Heroku's runtime.
#
# This script is invoked by [`bin/compile`](/).
# The location of the pre-compiled cryptography binary.
VENDORED_LIBFFI
=
"http://lang-python.s3.amazonaws.com/
$STACK
/libraries/vendor/libffi.tar.gz"
PKG_CONFIG_PATH
=
"/app/.heroku/vendor/lib/pkgconfig:
$PKG_CONFIG_PATH
"
# Syntax sugar.
source
$BIN_DIR
/utils
bpwatch start libffi_install
whereis pkg-config
# If pylibmc exists within requirements, use vendored cryptography.
if
(
pip-grep
-s
requirements.txt cffi pylibmc
)
then
if
[
-d
".heroku/vendor/lib/libffi-3.1.1"
]
;
then
export
LIBFFI
=
$(
pwd
)
/vendor
else
echo
"-----> Noticed cffi. Bootstrapping libffi."
mkdir
-p
.heroku/vendor
# Download and extract cryptography into target vendor directory.
curl
$VENDORED_LIBFFI
-s
|
tar
zxv
-C
.heroku/vendor &> /dev/null
export
LIBFFI
=
$(
pwd
)
/vendor
fi
fi
bpwatch stop libffi_install
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment