A helper buildpack to get CFFI and projects that use it working on Heroku.
Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
LICENSE
README.md

README.md

heroku-buildpack-cffi

Support for this is now included in the main Python buildpack. This is only up for legacy reasons. Please don't use it.

A helper buildpack to get CFFI and projects that use it working on Heroku.

Usage

First set your BUILDPACK_URL to https://github.com/ddollar/heroku-buildpack-multi.git:

$ heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git

Create the .buildpacks config for buildpack-multi:

$ cat .buildpacks
https://github.com/ddollar/heroku-buildpack-apt
https://github.com/coderanger/heroku-buildpack-cffi
https://github.com/heroku/heroku-buildpack-python

And then create the Aptfile config for buildpack-apt:

$ cat Aptfile
libffi-dev

Then just put the Python libraries you need in the normal requirements.txt.

If you are building CFFI for Cryptography, no additional configuration should be required.

License

Copyright 2014, Noah Kantrowitz

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.