|
1 | 1 | Heroku buildpack: Python, Numpy, Scipy, Scikit-learn |
2 | 2 | ==================================================== |
3 | 3 |
|
4 | | -This is a [Heroku buildpack](http://devcenter.heroku.com/articles/buildpacks) |
5 | | -for Python apps, powered by [pip](http://www.pip-installer.org/). |
| 4 | +WARNING: This buildpack is not being maintained anymore. Please use the fork by |
| 5 | +@thenovices instead: |
6 | 6 |
|
7 | | -Additionally, it adds support for Numpy, Scipy and Scikit-learn. |
8 | | - |
9 | | -[](http://travis-ci.org/dbrgn/heroku-buildpack-python-sklearn) |
10 | | - |
11 | | -Differences to other forks |
12 | | --------------------------- |
13 | | - |
14 | | -This buildpack is strongly inspired by @wyn and @ToonTimbermont. In fact, I |
15 | | -copied a lot of code from them. It also uses binaries provided by @wyn. Thanks |
16 | | -a lot. |
17 | | - |
18 | | -In contrast to their forks, this buildpack does not require a `setup.py`, it |
19 | | -works with a normal `requirements.txt` file. Additionally, it is based on the |
20 | | -current version of the heroku-buildpack-python. This means that it uses a |
21 | | -current version of pip, which gets rid of some stack traces in the deploy log. |
22 | | - |
23 | | -Setup, Usage |
24 | | ------------- |
25 | | - |
26 | | -First of all, it is important that your requirements for Numpy and SciPy use |
27 | | -only one of the versions available as precompiled binaries here: |
28 | | -https://github.com/dbrgn/npscipy-binaries At the time of this writing, |
29 | | -supported versions are: |
30 | | - |
31 | | -- Numpy 1.6.1 |
32 | | -- Numpy 1.7.0 |
33 | | -- Scipy 0.10.1 |
34 | | -- Scipy 0.11.0 |
35 | | - |
36 | | -Then specify the buildpack as usual. For a new app: |
37 | | - |
38 | | - heroku create --buildpack https://github.com/dbrgn/heroku-buildpack-python-sklearn/ |
39 | | - |
40 | | -For an existing app: |
41 | | - |
42 | | - heroku config:set BUILDPACK_URL=https://github.com/dbrgn/heroku-buildpack-python-sklearn/ |
43 | | - |
44 | | -Demo |
45 | | ----- |
46 | | - |
47 | | - $ mkdir testheroku |
48 | | - $ cd testheroku |
49 | | - $ git init |
50 | | - $ heroku create --buildpack https://github.com/dbrgn/heroku-buildpack-python-sklearn/ |
51 | | - $ echo -e "numpy==1.7.0\nscipy==0.11.0\nscikit-learn==0.13.1" > requirements.txt |
52 | | - $ git add requirements.txt |
53 | | - $ git commit -m 'Added requirements' |
54 | | - $ git push heroku master |
55 | | - Counting objects: 3, done. |
56 | | - Writing objects: 100% (3/3), 260 bytes | 0 bytes/s, done. |
57 | | - Total 3 (delta 0), reused 0 (delta 0) |
58 | | - |
59 | | - -----> Fetching custom git buildpack... done |
60 | | - -----> Python app detected |
61 | | - -----> No runtime.txt provided; assuming python-2.7.4. |
62 | | - -----> Preparing Python runtime (python-2.7.4) |
63 | | - -----> Installing Distribute (0.6.36) |
64 | | - -----> Installing Pip (1.3.1) |
65 | | - -----> Noticed numpy/scipy. Bootstrapping prebuilt binaries. |
66 | | - -----> Creating/downloading binaries. |
67 | | - -----> Creating/downloading numpy bdist. |
68 | | - -----> Creating/downloading scipy bdist. |
69 | | - -----> Moving everything from venv directory to python directory... |
70 | | - -----> Installing dependencies using Pip (1.3.1) |
71 | | - -----> Noticed scikit-learn. Installing... |
72 | | - -----> Setting environment vars... |
73 | | - -----> Installing scikit-learn==0.13.1 via pip |
74 | | - Downloading/unpacking scikit-learn==0.13.1 |
75 | | - Running setup.py egg_info for package scikit-learn |
76 | | - |
77 | | - (...) |
78 | | - |
79 | | - Successfully installed scikit-learn |
80 | | - Cleaning up... |
81 | | - Cleaning up... |
82 | | - |
83 | | - -----> Discovering process types |
84 | | - Procfile declares types -> (none) |
85 | | - |
86 | | - -----> Compiled slug size: 59.6MB |
87 | | - -----> Launching... done, v4 |
88 | | - http://ancient-eyrie-7305.herokuapp.com deployed to Heroku |
89 | | - |
90 | | - To [email protected]:ancient-eyrie-7305.git |
91 | | - * [new branch] master -> master |
| 7 | +https://github.com/thenovices/heroku-buildpack-scipy |
0 commit comments