distutils is deprecated since Python 3.10, will be removed in Python 3.12; see https://www.python.org/dev/peps/pep-0632
Places we rely on distutils currently:
from distutils.version import LooseVersion (framework + easyblocks)
from distutils.version import StrictVersion in easybuild/tools/modules.py + tests
- in
setup.py, to avoid depending on setuptools
from distutils.util import strtobool in easybuild/framework/easyconfig/types.py
distutilsis deprecated since Python 3.10, will be removed in Python 3.12; see https://www.python.org/dev/peps/pep-0632Places we rely on
distutilscurrently:from distutils.version import LooseVersion(framework + easyblocks)but that has bitrotted a bitlooks promising...LooseVersionfrom Python stdlib into EasyBuild?|before|(see also http://tomerfiliba.com/blog/Infix-Operators/)?from distutils.version import StrictVersionineasybuild/tools/modules.py+ testssetup.py, to avoid depending onsetuptoolssetuptoolswill be a necesary evil (see also drop requirement for setuptools as runtime dependency #2836)from distutils.util import strtoboolineasybuild/framework/easyconfig/types.py