GEUS-Glaciology-and-Climate / pypromice

Process AWS data from L0 (raw logger) through Lx (end user)
https://pypromice.readthedocs.io
GNU General Public License v2.0
12 stars 4 forks source link

Fix dependencies for conda build #237

Closed PennyHow closed 2 months ago

PennyHow commented 2 months ago

The conda distribution of pypromice was not building and I figured out it was because we had added eccodes as an explicit dependency. I.e.

$ pip install pypromice
$ conda install pypromice -c conda-forge

This is now added in the conda build.

The conda build was also failing because it could not connect to the GEUS Dataverse. This is done in the unit testing for pypromice.get for fetching datasets. So I have commented these tests out to avoid this happening again.

I've also provided an option in the setup.py to offer the dependencies for pypromice's post-processing functionality (i.e. eccodes and scikit-learn) as a separate pip build. I.e.

pip install pypromice[postprocess]

I've not implemented this, but it is just an option that is currently commented out.