ECCO-GROUP / ECCOv4-py

A Python library with routines that support the loading, analysis, and plotting fields of the ECCO Version 4 Ocean and Sea-Ice State Estimate. The ecco_v4_py library builds on several valuable tools such as xmitgcm, gcm, xarray, and dask.
MIT License
30 stars 30 forks source link

Unnecessary dependencies in setup.py #134

Closed rcaneill closed 2 years ago

rcaneill commented 2 years ago

Hello, thanks for this very nice package! While trying to install it via poetry (that uses pip internally), I had some issues. After some research, I think this is because some unnecessary deps are defined in the setup files. These deps are:

Apart from my troubles installing via poetry (due to pathlib), this installs a lot of useless packages.

I can submit a PR to fix this issue if you want to.

https://github.com/ECCO-GROUP/ECCOv4-py/blob/3960799927dc9f8ecd4b1d7a4138caffe9814e31/setup.py#L24-L28

ifenty commented 2 years ago

Hi Romain @rcaneill

Thank you for the comment. I think you are right about pathlib -- I didn't realize it was part of standard python deployments. At one point proj and geos were needed by cartopy or pyresample. Are you saying that proj and geos are no longer required? If that's true, then let's remove them from setup.py.

Ian

rcaneill commented 2 years ago

Proj and geos are still required by cartopy, however not the pip libraries (that are completely other things, cf my previous comment), but the binaries libraries (installable via e.g. conda or apt-get). So I guess that they should be removed from setup.py

ifenty commented 2 years ago

@rcaneill I removed geos, proj, and pathlib per your suggestion. If installation via poetry still fails with the new version (1.5.4) let's figure out why.

rcaneill commented 2 years ago

Works fine now, with the version 1.5.4. Thanks!