jamesorr / mocsy

Routines to model ocean carbonate system thermodynamics
MIT License
18 stars 16 forks source link

Python package #1

Closed ocefpaf closed 8 years ago

ocefpaf commented 8 years ago

This PR seems big but it is mostly boilerplate to make mocsy an installable python module.

TODO:

ping @emiliom who requested a conda package for mocsy. (See https://github.com/ioos/conda-recipes/pull/563)

jamesorr commented 8 years ago

Thanks for this pull request. I've just returned from travels, but will take a closer look and get back to you shortly.

emiliom commented 8 years ago

Thanks, Jim. I think I would suggest to hold off on accepting that pull request until we've had a chance to talk a bit more. @ocefpaf, would you agree? We've already discussed some possible changes to what's in the pull request, so I think a bit more discussion would help us get on the same page.

@jamesorr, I should emphasize that you can try our initial conda package right now. On your anaconda or miniconda installation, you just need to add the IOOS channel, then create an environment that includes the mocsy package. It could be as simple as something like this:

# Add the IOOS channel
conda config --set show_channel_urls True
conda config --add channels ioos -f
# Create a simple conda environment with mocsy, which can run our examples notebook:
conda create -n mocsy_test python=2.7 pip ipython-notebook pandas matplotlib mocsy

The examples notebook is here. This should work on Linux and OSX right now (I can vouch for Linux); Filipe may be able to say if he thinks it'll work on Windows, too.

ocefpaf commented 8 years ago

I think I would suggest to hold off on accepting that pull request until we've had a chance to talk a bit more. @ocefpaf, would you agree?

Yes. I opened issue #2 to start the discussion.

ocefpaf commented 8 years ago

Note to self: Try https://github.com/scipy/scipy/blob/81c096001974f0b5efe29ec83b54f725cc681540/scipy/fftpack/setup.py#L16-L17

ocefpaf commented 8 years ago

Closing this one in favor of #3