forcedotcom / distributions

Low-level primitives for collapsed Gibbs sampling in python and C++
BSD 3-Clause "New" or "Revised" License
33 stars 25 forks source link

add conda recipes for distributions #73

Closed stephentu closed 10 years ago

stephentu commented 10 years ago

here are the conda recipes for distributions.

since protobuf is a dependency, we also provide a recipe for both libprotobuf (the C++ library) and protobuf (the python runtime). the python runtime dep has been pushed mainstream and is therefore not included, but the C++ library is trickier since distributions builds with libc++ and its unclear what the proper binstar/conda conventions for handling this (see https://groups.google.com/a/continuum.io/forum/#!mydiscussions/anaconda/XL6ei0pCVfo for complete silence on this topic).

in theory, you should be able to:

$ conda config --add channels distributions # for libprotobuf/protobuf deps
$ cd conda
$ conda build distributions
$ binstar upload [...] # you need the binstar credentials to do this step

the process is manual for the time being. ideally we'd integrate this into whatever workflow you currently have set up for making pip releases.

fritzo commented 10 years ago

Hi Stephen, could we chat about this when you visit on monday? I'd like to add a github hook to upload-on-tag but I don't know enough about anaconda.

stephentu commented 10 years ago

i realized we didn't get a chance to discuss this at lunch, so I'll say a few things now. the recipe included in this pull request is just the necessary files which allow you to say conda build /path/to/recipe/folder which will build a conda package on your machine.

we currently have a separate repo which both builds + pushes to binstar: https://github.com/datamicroscopes/release

travis CI is nice for this, because we can then build on linux and OS X separately. you activate it by pushing a commit to the release repo (we have one branch for linux builds, and another branch for OS X builds)

fritzo commented 10 years ago

Stephen, could we chat sometime to agree on a workflow? You're welcome to stop by Heroku, or I can meet you in Berkeley some late afternoon. I stay in Berkeley ~2nights/week anyway.

On Wed, Aug 6, 2014 at 2:55 PM, Stephen Tu notifications@github.com wrote:

i realized we didn't get a chance to discuss this at lunch, so I'll say a few things now. the recipe included in this pull request is just the necessary files which allow you to say conda build /path/to/recipe/folder which will build a conda package on your machine.

we currently have a separate repo which both builds + pushes to binstar: https://github.com/datamicroscopes/release

travis CI is nice for this, because we can then build on linux and OS X separately. you activate it by pushing a commit to the release repo (we have one branch for linux builds, and another branch for OS X builds)

— Reply to this email directly or view it on GitHub https://github.com/forcedotcom/distributions/pull/73#issuecomment-51403132 .

stephentu commented 10 years ago

@fritzo: sure, I'll email you to take this discussion off of the issues