UMEP-dev / SUEWS

Surface Urban Energy and Water Balance Scheme
https://suews.readthedocs.io/
Mozilla Public License 2.0
12 stars 6 forks source link

py39–py312 supoort #257

Closed sunt05 closed 1 month ago

sunt05 commented 1 month ago

Add support for Python 3.12 to the project.

sunt05 commented 1 month ago

Some more updates on this

the complete removal of distutils in py312 has led to several compatibility issues with custom patches I introduced for proper packaging of supy_driver on Windows, as well as some apparent upstream bugs in numpy related to this.


Next step

need to set up a py312 dev environment to accommodate the changes and address the distutils-related issues.

sunt05 commented 1 month ago

Further research reveals that the distutils-based modules have been removed. We need to fully transition to meson for the build process, like other SciPy packages.

sunt05 commented 1 month ago

Managed to add support for py312 using meson as the build system, as recommended by the scientific Python community. The built wheels can also be successfully delivered to (Test)PyPI.

Next step is to add tests for the wheels.

sunt05 commented 1 month ago

Also needs to accommodate py39.