Open thebaptiste opened 5 days ago
May be a way to set ecmwflibs as an optional dependency would be to set dependencies as "dynamic" in pyproject.toml and set them in setup.py with a python test on environment variable CLIMETLAB_DO_NOT_INSTALL_ECMWFLIBS. See here for usage of setup.py in complement of pyproject.toml for the dynamic part.
What happened?
I'm using climetlab without ecmwflibs on Python 3.12. I was using release 0.20.1 with
CLIMETLAB_DO_NOT_INSTALL_ECMWFLIBS=1
, building myself eccodes and other packages such as Magics from sources (see this commit in which ecmwflibs was not required anymore to install climetlab which I think was a great improvment) I try to upgrade to last climetlab release 0.24.0 and, damned, ecmwflibs is back again as a required dependency with constraintecmwflibs>=0.6.3
. As ecmwflibs 0.6.3 doest not provide wheels for Python 3.12 I can't use climetlab anymore. So please, remove ecmwflibs as a required dependency of climetlab ! It should only be an optional dependency as ecmwflibs is too big to provide all wheels for each release.What are the steps to reproduce the bug?
pip install climetlab==0.24.0
under Python 3.12Version
v0.24.0
Platform (OS and architecture)
RockyLinux 8
Relevant log output