paudetseis / PyRaysum

Teleseismic body wave modeling through stacks of (dipping/anisotropic) layers
https://paudetseis.github.io/PyRaysum/
MIT License
43 stars 14 forks source link

distutils DeprecationWarning #14

Open wasjabloch opened 1 year ago

wasjabloch commented 1 year ago

When building pyraysum in python 3.11, a DeprecationWarning is issued:

setup.py:4: DeprecationWarning: 

  `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
  of the deprecation of `distutils` itself. It will be removed for
  Python >= 3.12. For older Python versions it will remain present.
  It is recommended to use `setuptools < 60.0` for those Python versions.
  For more details, see:
    https://numpy.org/devdocs/reference/distutils_status_migration.html 

setup.py should be migrated following the instructions here: https://numpy.org/devdocs/reference/distutils_status_migration.html

The site mentions:

It is not necessary to migrate immediately - the release date for Python 3.12 is October 2023.

wasjabloch commented 2 hours ago

We should move to scikit-buil-core:

https://scikit-build-core.readthedocs.io/en/stable