-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python3] adjust sysconfig include dir to match vcpkg layout (#34888)
* [python3] modify sysconfig include dir for vcpkg layout * v db
- Loading branch information
Showing
5 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
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}', | ||
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters