Message400463
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). |
|
Date |
User |
Action |
Args |
2021-08-28 06:43:22 | uranusjr | set | recipients:
+ uranusjr, vstinner, eric.araujo, dstufft, hroncok |
2021-08-28 06:43:22 | uranusjr | set | messageid: <1630133002.18.0.922476282003.issue45035@roundup.psfhosted.org> |
2021-08-28 06:43:22 | uranusjr | link | issue45035 messages |
2021-08-28 06:43:21 | uranusjr | create | |
|