Setuptools will eventually incorporate stdlib's distutils. With the recent version (60+) setuptools switched from stdlib's distutils to its own (bundled and patched) version. However, ALT ships Python3 (stdlib) with the patched distutils and installation schema. This customization must be applied to setuptools. For example, ``` [builder@localhost somedir]$ python3 -c "import distutils.sysconfig;print(distutils.sysconfig.get_python_lib(prefix='/usr'))" /usr/lib/python3.9/site-packages ``` ``` [builder@localhost somedir]$ export SETUPTOOLS_USE_DISTUTILS=stdlib [builder@localhost somedir$ python3 -c "import distutils.sysconfig;print(distutils.sysconfig.get_python_lib(prefix='/usr'))" /usr/lib/python3/site-packages ``` See https://github.com/pypa/setuptools/pull/2143 https://github.com/pypa/packaging-problems/issues/127 for details.
https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated: ``` The entire distutils package is deprecated, to be removed in Python 3.12. Its functionality for specifying package builds has already been completely replaced by third-party packages setuptools and packaging, and most other commonly used APIs are available elsewhere in the standard library (such as platform, shutil, subprocess or sysconfig). There are no plans to migrate any other functionality from distutils, and applications that are using other functions should plan to make private copies of the code. Refer to PEP 632 for discussion. ```
python3-module-setuptools-1:60.5.4-alt1 -> sisyphus: Tue Jan 18 2022 Stanislav Levin <slev@altlinux> 1:60.5.4-alt1 - 59.6.0 -> 60.5.4 (closes: #41643).