mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
17081d0328
commit b611ff0cd6ed05ff27a42b6c2da656441056cfba Author: Kenneth Reitz <me@kennethreitz.org> Date: Fri Dec 23 23:11:51 2016 -0500 remove debugging statements commitd1ab87748bAuthor: Kenneth Reitz <me@kennethreitz.org> Date: Fri Dec 23 23:05:46 2016 -0500 ln -s commit6844d1252dAuthor: Kenneth Reitz <me@kennethreitz.org> Date: Fri Dec 23 22:55:41 2016 -0500 further debug commit1346c29089Author: Kenneth Reitz <me@kennethreitz.org> Date: Fri Dec 23 22:54:42 2016 -0500 debug commit3bc1b5e697Author: Kenneth Reitz <me@kennethreitz.org> Date: Fri Dec 23 22:53:23 2016 -0500 say when installing pip or setuptools
Python Buildpack Binaries
To get started with it, create an app on Heroku inside a clone of this repository, and set your S3 config vars:
$ heroku create --buildpack https://github.com/heroku/heroku-buildpack-python#not-heroku
$ heroku config:set WORKSPACE_DIR=builds
$ heroku config:set AWS_ACCESS_KEY_ID=<your_aws_key>
$ heroku config:set AWS_SECRET_ACCESS_KEY=<your_aws_secret>
$ heroku config:set S3_BUCKET=<your_s3_bucket_name>
Then, shell into an instance and run a build by giving the name of the formula inside builds:
$ heroku run bash
Running `bash` attached to terminal... up, run.6880
~ $ bob build runtimes/python-2.7.6
Fetching dependencies... found 2:
- libraries/sqlite
Building formula runtimes/python-2.7.6:
=== Building Python 2.7.6
Fetching Python v2.7.6 source...
Compiling...
If this works, run bob deploy instead of bob build to have the result uploaded to S3 for you.
To speed things up drastically, it'll usually be a good idea to heroku run bash --size PX instead.
Enjoy :)