recast-hep / recast-atlas

CLI for ATLAS RECAST contributors
https://recast.docs.cern.ch/
Apache License 2.0
5 stars 5 forks source link

Remove deprecated distutils functionality #92

Open matthewfeickert opened 2 years ago

matthewfeickert commented 2 years ago

distutils is deprecated in Python 3.10+, as noted in the pip v21.3 release notes

On Python 3.10 or later, the installation scheme backend has been changed to use sysconfig. This is to anticipate the deprecation of distutils in Python 3.10, and its scheduled removal in 3.12. For compatibility considerations, pip installations running on Python 3.9 or lower will continue to use distutils.

To prevent bugs in the future that will cause tests to break, we should switch the distutils functionality

https://github.com/recast-hep/recast-atlas/blob/f35c7809b93bf3dcd461e6719f9beb84d97dc5e4/src/recastatlas/subcommands/catalogue.py#L4

https://github.com/recast-hep/recast-atlas/blob/f35c7809b93bf3dcd461e6719f9beb84d97dc5e4/src/recastatlas/subcommands/catalogue.py#L39-L43

to setuptools (I think it is setuptools).