Bug 41643

Summary: installation schema
Product: Sisyphus Reporter: Stanislav Levin <slev>
Component: python3-module-setuptoolsAssignee: Stanislav Levin <slev>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: antohami, cas, cow, evg, george, grenka, imz, kotopesutility, lav, nbr, qa_viy, rider, sem, shaba, sin, slev, toni, vitty, viy
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Stanislav Levin 2021-12-28 10:03:30 MSK
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.
Comment 1 Stanislav Levin 2021-12-30 14:18:51 MSK
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.
```
Comment 2 Repository Robot 2022-01-23 04:06:03 MSK
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).