xgcm / xcape

Fast convective parameters for numpy, dask, and xarray
Other
30 stars 11 forks source link

Setup.py for more complex package #6

Closed chiaral closed 4 years ago

chiaral commented 5 years ago

Brian Rose's https://github.com/brian-rose/climlab can help us setting up the setup.py.

Things I gather from chatting with him and browsing the repo: 1) you have a hierarchy of setup.py 2) you have a multitude of subpackages, which has a separate setup.py in it

I can try to setup this up, but it would be a large reorganization of everything in the repo. What is the best way to proceed?

chiaral commented 5 years ago

I think this is the solution? https://docs.python.org/3/distutils/setupscript.html#extension-names-and-packages

chiaral commented 5 years ago

You might want to look still at this https://github.com/brian-rose/climlab/blob/master/climlab/convection/_emanuel_convection/setup.py for the fortran flag to be included.

chiaral commented 4 years ago

This was done in previous PRs.