[issue45460] distutils.sysconfig.get_python_lib() does not respect sysconfig/distutils install schemes

Miro Hrončok report at bugs.python.org
Wed Oct 13 10:02:39 EDT 2021


New submission from Miro Hrončok <miro at hroncok.cz>:

In https://github.com/python/cpython/pull/24549 (Load install schemes from sysconfig) we have assumed that distutils will simply read all information from sysconfig, so distributors could patch the install schemes in there and distutils (whether the one in the standard library or a third party fork).

However, in https://github.com/pypa/pip/issues/10151#issuecomment-942162384 we have figured out that distutils.sysconfig.get_python_lib() does not respect the schemes from sysconfig at all, instead, it creates the paths from scratch.

This might be too late for Python 3.10, but in Python 3.11 I'd like distutils.sysconfig.get_python_lib() to return paths defined by sysconfig install schemes. That way, we can more easily move that from the standard library to a third-party project with an independent delivery mechanism.

----------
components: Distutils
messages: 403834
nosy: FFY00, dstufft, eric.araujo, frenzy, hroncok, jaraco, petr.viktorin, vstinner
priority: normal
severity: normal
status: open
title: distutils.sysconfig.get_python_lib() does not respect sysconfig/distutils install schemes
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45460>
_______________________________________


More information about the Python-bugs-list mailing list