Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame^] | 1 | From deeedd1b8799294ab276ab7dbbfdb59c1dacc9a2 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Thu, 22 Oct 2020 13:10:34 +0200 |
| 4 | Subject: [PATCH] Lib/sysconfig.py: use libdir values from configuration file |
| 5 | |
| 6 | This allows correctly substituting them for target installs using |
| 7 | native python. |
| 8 | |
| 9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 10 | --- |
| 11 | Lib/sysconfig.py | 8 ++++---- |
| 12 | 1 file changed, 4 insertions(+), 4 deletions(-) |
| 13 | |
| 14 | diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py |
| 15 | index bf04ac5..ed0462b 100644 |
| 16 | --- a/Lib/sysconfig.py |
| 17 | +++ b/Lib/sysconfig.py |
| 18 | @@ -20,10 +20,10 @@ __all__ = [ |
| 19 | |
| 20 | _INSTALL_SCHEMES = { |
| 21 | 'posix_prefix': { |
| 22 | - 'stdlib': '{installed_base}/{platlibdir}/python{py_version_short}', |
| 23 | - 'platstdlib': '{platbase}/{platlibdir}/python{py_version_short}', |
| 24 | - 'purelib': '{base}/lib/python{py_version_short}/site-packages', |
| 25 | - 'platlib': '{platbase}/{platlibdir}/python{py_version_short}/site-packages', |
| 26 | + 'stdlib': '{LIBDEST}', |
| 27 | + 'platstdlib': '{LIBDEST}', |
| 28 | + 'purelib': '{LIBDEST}/site-packages', |
| 29 | + 'platlib': '{LIBDEST}/site-packages', |
| 30 | 'include': |
| 31 | '{installed_base}/include/python{py_version_short}{abiflags}', |
| 32 | 'platinclude': |
| 33 | -- |
| 34 | 2.24.0 |
| 35 | |