eccodes-python icon indicating copy to clipboard operation
eccodes-python copied to clipboard

Build a wheel binary distribution that includes ecCodes

Open alexamici opened this issue 6 years ago • 4 comments

At the moment ecCodes must be installed on the system for eccodes-python to work.

Following thew strategy of https://github.com/mapbox/rasterio it would e possible to package the whole ecCodes library and data files in the multilinux wheel binary package.

Pro:

  • no need to have two install steps, only pip install eccodes-python
  • no need to install ecCodes as root

Con:

  • huge binary wheel package
  • possible conflicts with other Python packages that link to ecCodes (quite remote)

The infrastructure used by rasterio is here: https://github.com/sgillies/frs-wheel-builds

Was: ecmwf/cfgrib#22

alexamici avatar Feb 02 '19 16:02 alexamici

It would be good if cfgrib just uses eccodes-python. For now, python -m cfgrib selfcheckstill fails with eccodes-python. Thanks.

datarods-svc avatar Aug 19 '19 16:08 datarods-svc

@alexamici I can see that cfgrib is on conda-forge and uses the ecCodes package from there.

Does that mean this issue is resolved? conda install -c conda-forge cfgrib gives the one-line install step you want and manages deps for you.

dtip avatar Dec 05 '19 13:12 dtip

@datarods-svc migrating cfgrib on eccodes-python is tracked here: https://github.com/ecmwf/cfgrib/issues/95 the main blocker is the conda package with eccodes-python

@dtip [note that I updated the issue description with eccodes-python not cfgrib] the issue is now much lower priority thanks to the conda packages, but that it would still be nice to have a multilinux wheel for users who are not on conda.

alexamici avatar Dec 05 '19 14:12 alexamici

I see - thanks for clarifying

dtip avatar Dec 05 '19 15:12 dtip