vcpkg/ports/python3/0018-fix-sysconfig-include.patch
Alexander Neumann 1802d39436
[python3] adjust sysconfig include dir to match vcpkg layout (#34888)
* [python3] modify sysconfig include dir for vcpkg layout

* v db
2023-11-06 10:59:04 -08:00

28 lines
1.2 KiB
Diff

diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index ebe371182..e351df7da 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -30,9 +30,9 @@
'purelib': '{base}/lib/python{py_version_short}/site-packages',
'platlib': '{platbase}/{platlibdir}/python{py_version_short}/site-packages',
'include':
- '{installed_base}/include/python{py_version_short}{abiflags}',
+ '{installed_base}/../../include/python{py_version_short}{abiflags}',
'platinclude':
- '{installed_platbase}/include/python{py_version_short}{abiflags}',
+ '{installed_platbase}/../../include/python{py_version_short}{abiflags}',
'scripts': '{base}/bin',
'data': '{base}',
},
@@ -51,8 +51,8 @@
'platstdlib': '{base}/Lib',
'purelib': '{base}/Lib/site-packages',
'platlib': '{base}/Lib/site-packages',
- 'include': '{installed_base}/Include',
- 'platinclude': '{installed_base}/Include',
+ 'include': '{installed_base}/../../include/python{py_version_short}{abiflags}',
+ 'platinclude': '{installed_base}/../../include/python{py_version_short}{abiflags}',
'scripts': '{base}/Scripts',
'data': '{base}',
},