Skip to content

Heroku buildpack (docs) to install Python applications using conda and pip

License

Notifications You must be signed in to change notification settings

waqasm86/conda-pip-buildpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conda/pip buildpack

Heroku buildpack (docs) to install Python applications using conda and pip.

Configure this buildpack on your Heroku application like this:

heroku buildpacks:set https://github.com/faph/conda-pip-buildpack.git#v1.3.0

Then, in the root of your project, create an environment.yml file like this:

name: env  # anything goes
channels:
- custom-channel  # if required
- ...
dependencies:
- python=3.5.*
- other-conda-package
- ...
- pip:
  - pip-package  # if required
  - ...

See also the conda env spec.

Alternatively, list conda packages in a conda-requirements.txt file, pip packages in a requirements.txt file (optional) and non-default conda channels in a conda-channels.txt file.

Slug compilation

  • The conda root environment is created at /app/.heroku/miniconda.
  • The application’s environment is created and activated at /app/.heroku/miniconda/envs/app_env.
  • The application itself is installed in /app.
  • Django static files are collected (symlinked) if a manage.py file exists in the project’s root. If the constant STATIC_ROOT is not defined, this will silently fail.

Copyrights

Based on a conda buildpack by Kenneth Reitz.

Licensed under the MIT licence.

About

Heroku buildpack (docs) to install Python applications using conda and pip

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%