<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>41643</bug_id>
          
          <creation_ts>2021-12-28 10:03:30 +0300</creation_ts>
          <short_desc>installation schema</short_desc>
          <delta_ts>2022-01-23 04:06:03 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python3-module-setuptools</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stanislav Levin">slev</reporter>
          <assigned_to name="Stanislav Levin">slev</assigned_to>
          <cc>slev</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>206419</commentid>
    <comment_count>0</comment_count>
    <who name="Stanislav Levin">slev</who>
    <bug_when>2021-12-28 10:03:30 +0300</bug_when>
    <thetext>Setuptools will eventually incorporate stdlib&apos;s distutils.

With the recent version (60+) setuptools switched from stdlib&apos;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 &quot;import distutils.sysconfig;print(distutils.sysconfig.get_python_lib(prefix=&apos;/usr&apos;))&quot;
/usr/lib/python3.9/site-packages
```
    
```
[builder@localhost somedir]$ export SETUPTOOLS_USE_DISTUTILS=stdlib
[builder@localhost somedir$ python3 -c &quot;import distutils.sysconfig;print(distutils.sysconfig.get_python_lib(prefix=&apos;/usr&apos;))&quot;
/usr/lib/python3/site-packages
```

See
https://github.com/pypa/setuptools/pull/2143
https://github.com/pypa/packaging-problems/issues/127
for details.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>206490</commentid>
    <comment_count>1</comment_count>
    <who name="Stanislav Levin">slev</who>
    <bug_when>2021-12-30 14:18:51 +0300</bug_when>
    <thetext>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.
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>207020</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2022-01-23 04:06:03 +0300</bug_when>
    <thetext>python3-module-setuptools-1:60.5.4-alt1 -&gt; sisyphus:

 Tue Jan 18 2022 Stanislav Levin &lt;slev@altlinux&gt; 1:60.5.4-alt1
 - 59.6.0 -&gt; 60.5.4 (closes: #41643).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>