Skip to content

ducheneaut/miniconda-buildpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package is deprecated. It is now possible to deploy scientific computing libraries using Heroku's latest stack.

Conda Buildpack

This is a Heroku Buildpack for Conda, the Python distribution for scientific computing by Continuum Analytics. It is based on the lightweight Miniconda distribution, keeping the final slug size as small as possible.

To control the packages installed by conda, supply a requirements-conda.txt file (which can be created by capturing the output of conda list -e for your working conda environment). Note that you MUST specify libgfortran and libopenblas explicitly in this file for numpy to work properly. See included requirements-conda.txt, which can be used as a template.

All other packages can then be installed with a requirements-pip.txt file for pip to process. In this way, you can install binary packages via Miniconda for everything you can and still use pip for anything you can't.

You must also specify a MINICONDA_UPGRADE=[0 or 1] in your Heroku app's settings. Set to 1, the buildpack will try to reinstall all packages from the latest Miniconda release. Set to 0, the buildpack will simply deploy using the currently cached installation.

Note for Mac Developers

If you're on a Mac and want to test the scripts locally like I did, you'll need to make your local environment as close as possible to a GNU Linux distribution using Homebrew with the following commands:

  1. Fix issues with "date": brew install coreutils Update your path with PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"

  2. Fix issues with "sed": brew install gnu-sed --with-default-names

  3. Fix issues with "find": brew install findutils --with-default-names

About

Heroku buildpack for Miniconda.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages