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.
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.
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
https://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.