ecmwf / climetlab

Python package for easy access to weather and climate data
Apache License 2.0
374 stars 58 forks source link

Use of climetlab in centos6 environment #9

Closed thebaptiste closed 3 years ago

thebaptiste commented 3 years ago

Hello

May be this is more a question than an issue...

I'm working on Metwork project. We are building rpms providing a bunch of recent releases of free libraries (mostly C/C++ and python3). These rpms can be installed on several linux distributions (including CentOS6) to provide libraries not available on the system. Our rpms are installed without changing anything to the libraries previously installed on the system. We provide a specific environment that user has to load for using Metwork libraries. So our CI system is building rpms on CentOS6 using recent compilers such as gcc-8 (thanks to devtoolset-8). In several months (2021 or 2022 I guess) we will probably drop CentOS6 support and move our CI system to Centos7, but for the time being we need to keep CentOS6 compatibility.

Recently one of our users asked us to add climetlab in Metwork (issue here). We have difficulties to do so because climetlab requires ecmwflibs and ecmwflibs is only provided as "manylinux2014" wheel which is not compatible with glibc 2.12 on CentOS6. It's all the more unfortunate that all ".so" libraries provided by ecmwflibs are available in Metwork (we built them from sources). Maybe we need to upgrade some of them but if so it is something we can deal with.

Do you have any suggestion or workaround (or maybe you never know ideas of changes in climetlab or ecmwflibs) to solve our problem ?

Thanks

thebaptiste commented 3 years ago

Maybe ecmwflibs should be an optional requirement (extras_require rather than install_requires) ? Or even not a requirement at all because, unless I am mistaken, climetlab never uses ecmwflibs.

thebaptiste commented 3 years ago

I opened a more explicit issue on the subject : https://github.com/ecmwf/climetlab/issues/10