silx icon indicating copy to clipboard operation
silx copied to clipboard

Remove use of `distutils` from `setup.py`

Open t20100 opened this issue 3 years ago • 1 comments
trafficstars

distutils is depracated and will be removed in Python 3.12 PEP 632, we should get rid of it.

t20100 avatar Dec 08 '21 09:12 t20100

After PR #3585, remaining distutils usage will be:

  • from distutils.command.clean import clean: Inherited to remove .c, .cpp files generated by Cython
  • from distutils.command.build import build: Inherited to pass options for force_cython and use_openmp. Those options are used by build_ext and not build, so they could be moved to build_ext instead (which comes from setuptools) and/or provided as environment variable (even if env. var. are not self-documented, but passing options through pip's --global-option is cumbersome).

t20100 avatar Jan 06 '22 15:01 t20100