Bug 41643 - installation schema
Summary: installation schema
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: python3-module-setuptools (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Stanislav Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-28 10:03 MSK by Stanislav Levin
Modified: 2022-01-23 04:06 MSK (History)
19 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).