Giter VIP home page Giter VIP logo

python-conda-buildpack's Introduction

DEPRECATED

This buildpack is no longer maintained. The official Cloud Foundry Python buildpack includes conda package management as of v1.5.6

Python Conda Buildpack

The python-conda-buildpack is a Cloud Foundry buildpack which uses Continuum's conda for package management.

Usage

To use this buildpack specify the URI of the repository when pushing a Python web application to Cloud Foundry.

cf push -b https://github.com/ihuston/python-conda-buildpack.git

Python Dependencies

This buildpack uses conda environments to make it easy to replicate dependicies from a development environment. See the conda documentation for more details.

If you are using a conda environment locally you can export the packages currently installed into a file named environment.yml:

conda env export -f environment.yml

The name of the environment is not important and will be overridden during installation.

Alternatively if an environment.yml file is not present, the buildpack supports dependencies declaration using a requirements.txt file for pip packages and a conda_requirements.txt file for conda packages.

These files should be located in the root of the directory being pushed to Cloud Foundry. The buildpack will first use conda to install those requirements, then use pip.

License

This buildpack is released under version 2.0 of the Apache License.

python-conda-buildpack's People

Contributors

ihuston avatar nebhale avatar ronert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-conda-buildpack's Issues

Help with heroku build

Hi,

I'm trying to use this buildpack on heroku. Although the app was deployed, but it doesn't running correctly like in localhost.And the build log shows some suspect errors in installing conda packages.

May I ask to give some advice?

Thanks!

build log:
-----> Fetching set buildpack https://github.com/ihuston/python-conda-buildpack.git... done
-----> Python app detected
-----> Starting compile step...
-----> Preparing Python Environment...
-----> Installing Dependencies...
/tmp/buildpack20151221-156-1f82oz4/bin/compile: line 58: /tmp/build_986ec6a3f149f7305826c34692e08690/lorinma-ifc2mongo-267f3e6/.conda/bin/conda: No such file or directory
/tmp/buildpack20151221-156-1f82oz4/bin/compile: line 59: /tmp/build_986ec6a3f149f7305826c34692e08690/lorinma-ifc2mongo-267f3e6/.conda/bin/conda: No such file or directory
-----> Installing conda environment from environment.yml...
/tmp/buildpack20151221-156-1f82oz4/bin/compile: line 66: /tmp/build_986ec6a3f149f7305826c34692e08690/lorinma-ifc2mongo-267f3e6/.conda/bin/conda: No such file or directory
/tmp/buildpack20151221-156-1f82oz4/bin/compile: line 78: /tmp/build_986ec6a3f149f7305826c34692e08690/lorinma-ifc2mongo-267f3e6/.conda/bin/conda: No such file or directory
-----> Fixing paths...
sed: no input files
-----> Finished compile step
-----> Discovering process types
Procfile declares types -> web
-----> Compressing... done, 6K
-----> Launching... done, v8
https://ifc2mongo.herokuapp.com/ deployed to Heroku

environment.yml:
name: ifc2mongo
channels:
- lorinma
- DLR-SC
dependencies:

  • ifcopenshell=0.5dev=py35_0
  • pip:
    • Flask-PyMongo==0.4.0
    • Flask-RESTful==0.3.5
    • requests==2.9.0
    • gunicorn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.