NOAA-EMC / NCEPLIBS-bufr

The NCEPLIBS-bufr library contains routines and utilites for working with the WMO BUFR format.
Other
42 stars 19 forks source link

Fix Python 3.12 issues (use f2py directly through cmake) #539

Closed AlexanderRichert-NOAA closed 8 months ago

AlexanderRichert-NOAA commented 8 months ago

This PR fixes (:crossed_fingers:) the MacOS CI failures, and enables the Python module build with Python 3.12+ (no more distutils). The cmake now calls f2py directly (through 'python -m numpy.f2py'). The MacOS CI gave me some unrelated trouble that seems to be resolved with a few extra installations. I've rerun the CI a few extra times just to be extra sure...

Also cleaning up the python/CMakeLists.txt while I'm at it, namely, putting the add_test's in a loop (which involved renaming test.py -> test_misc.py).

Fixes #537

jbathegit commented 8 months ago

Thanks for your work on this Alex, and hopefully this also clears up any lingering MacOS CI issues that I was seeing in #535 a couple of weeks ago 🤞