This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author uranusjr
Recipients dstufft, eric.araujo, hroncok, uranusjr, vstinner
Date 2021-08-28.06:43:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630133002.18.0.922476282003.issue45035@roundup.psfhosted.org>
In-reply-to
Content
This is similar to bpo-44860, but in the other direction:

    $ docker run -it --rm -h=p fedora:34 bash
    ...
    [root@p /]# yum install python3 -y
    ...
    [root@p /]# type python3
    python3 is hashed (/usr/bin/python3)
    [root@p /]# python3 -V
    Python 3.9.6
    [root@p /]# python3.9 -q
    >>> from distutils.command.install import install
    >>> from distutils.dist import Distribution
    >>> c = install(Distribution())
    >>> c.home = '/foo'
    >>> c.finalize_options()
    >>> c.install_platlib
    '/foo/lib64/python'
    >>> import sysconfig
    >>> sysconfig.get_path('platlib', 'posix_home', vars={'home': '/root'})
    '/foo/lib/python'

sysconfig’s scheme should use `{platlib}` instead of hardcoding 'lib'.

Note that on Python 3.10+ the platlib values from distutils and sysconfig do match (since the distutils scheme is automatically generated from sysconfig), but the issue remains; sysconfig’s scheme should likely include `{platlib}` (adding Victor and Miro to confirm this).
History
Date User Action Args
2021-08-28 06:43:22uranusjrsetrecipients: + uranusjr, vstinner, eric.araujo, dstufft, hroncok
2021-08-28 06:43:22uranusjrsetmessageid: <1630133002.18.0.922476282003.issue45035@roundup.psfhosted.org>
2021-08-28 06:43:22uranusjrlinkissue45035 messages
2021-08-28 06:43:21uranusjrcreate