[New-bugs-announce] [issue40854] [Patch] Allow overriding sys.platlibdir
Sandro Mani
report at bugs.python.org
Wed Jun 3 07:00:25 EDT 2020
New submission from Sandro Mani <manisandro at gmail.com>:
You can currently point the python interpreter to a different install say via
export PYTHONHOME=<Prefix>
export PYTHONPATH=<Prefix>/lib/python3.9
python3
With the newly added platlibdir [1], if python was configured with platlibdir=lib64, this will break because i.e. the site-packages dir as returned by `sysconfig.get_paths()` will use lib64 and not lib as the other install may be using.
This PR adds the possibility to override the platlibdir via environment variable.
Full rationale: [2].
[1] https://github.com/python/cpython/pull/8068
[2] https://src.fedoraproject.org/rpms/python3.9/pull-request/10
----------
components: Interpreter Core
messages: 370655
nosy: smani
priority: normal
severity: normal
status: open
title: [Patch] Allow overriding sys.platlibdir
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40854>
_______________________________________
More information about the New-bugs-announce
mailing list