MRtrix3 / mrtrix3

MRtrix3 provides a set of tools to perform various advanced diffusion MRI analyses, including constrained spherical deconvolution (CSD), probabilistic tractography, track-density imaging, and apparent fibre density
http://www.mrtrix.org
Mozilla Public License 2.0
294 stars 181 forks source link

Deprecated distutils module in Python 3.12 #2948

Closed Lestropie closed 3 months ago

Lestropie commented 3 months ago

This fix is exclusively for master / 3.0.x, to support Python 3.12 whilst preserving Python2 support. On dev, Python2 support has been dropped, and shutil.which() is used by name.

./run_tests scripts successful.

Can't fully verify via CI as Python2 support is not explicitly tested. No particular interest in doing so either; would prefer to focus on testing the range of Python3 versions supported (#2821) for 3.1. So hopefully this can be reviewed from first principles.