-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python3] Use vcpkg expat port instead of vendored code.
This fixes an observed build failure on x86-windows when the vcpkg expat port is installed before the python3 port is built.
- Loading branch information
Showing
11 changed files
with
57 additions
and
10 deletions.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 79ec7506399bc3846bb0631827e3880f5468e507 Mon Sep 17 00:00:00 2001 | ||
From: Adam Johnson <[email protected]> | ||
Date: Sun, 13 Sep 2020 21:33:33 -0400 | ||
Subject: [PATCH 1/7] Static library | ||
Subject: [PATCH 1/8] Static library | ||
|
||
|
||
diff --git a/PC/pyconfig.h b/PC/pyconfig.h | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 175b0e8c0d5d4ba1da3d9313a0208c8b814792f0 Mon Sep 17 00:00:00 2001 | ||
From: Adam Johnson <[email protected]> | ||
Date: Wed, 9 Sep 2020 15:20:36 -0400 | ||
Subject: [PATCH 2/7] Always use vcpkg zlib | ||
Subject: [PATCH 2/8] Always use vcpkg zlib | ||
|
||
Building without zlib is not a supported configuration, per the warning | ||
messages. | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From d69746248f01a3eca82f441e789279e9d0acaf08 Mon Sep 17 00:00:00 2001 | ||
From: Adam Johnson <[email protected]> | ||
Date: Wed, 9 Sep 2020 15:24:38 -0400 | ||
Subject: [PATCH 3/7] Remove external dependencies | ||
Subject: [PATCH 3/8] Remove external dependencies | ||
|
||
The externally fetched libraries may cause linker errors resulting from | ||
duplicate symbols in downstream projects. | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 04b72da23e00abb1a5ff02aa5b0cb54576d45051 Mon Sep 17 00:00:00 2001 | ||
From: Adam Johnson <[email protected]> | ||
Date: Wed, 9 Sep 2020 16:12:49 -0400 | ||
Subject: [PATCH 4/7] Don't copy vcruntime | ||
Subject: [PATCH 4/8] Don't copy vcruntime | ||
|
||
VCRUNTIME140.dll should not be redistributed, ever. | ||
|
||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From dfb70394a19e657f2700fa31b784b0ea538b2a70 Mon Sep 17 00:00:00 2001 | ||
From: Adam Johnson <[email protected]> | ||
Date: Wed, 9 Sep 2020 20:15:58 -0400 | ||
Subject: [PATCH 5/7] Only build required projects | ||
Subject: [PATCH 5/8] Only build required projects | ||
|
||
Strips out tests and unsupported externals (eg tkinter). | ||
|
||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 4d698284921b48b963caa26a352ef414f36f36d4 Mon Sep 17 00:00:00 2001 | ||
From: Adam Johnson <[email protected]> | ||
Date: Fri, 11 Sep 2020 12:35:36 -0400 | ||
Subject: [PATCH 6/7] fix duplicate symbols | ||
Subject: [PATCH 6/8] fix duplicate symbols | ||
|
||
|
||
diff --git a/Modules/_winapi.c b/Modules/_winapi.c | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From eaf5d60b5de65f8d1f8f32535cd2e42da3115f00 Mon Sep 17 00:00:00 2001 | ||
From: Adam Johnson <[email protected]> | ||
Date: Sun, 13 Sep 2020 19:38:30 -0400 | ||
Subject: [PATCH 7/7] Disable static PYD loading | ||
Subject: [PATCH 7/8] Disable static PYD loading | ||
|
||
Loading shared *.pyd extensions with a static python on Windows crashes | ||
the interpreter. Don't do that. | ||
|
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,37 @@ | ||
From 0fb7abf948c0c6157a49126c90ef661ef59cd11f Mon Sep 17 00:00:00 2001 | ||
From: Adam Johnson <[email protected]> | ||
Date: Wed, 16 Sep 2020 16:48:38 -0400 | ||
Subject: [PATCH 8/8] Always use vcpkg expat | ||
|
||
The vendored expat library causes errors when building the port on | ||
x86-windows after the expat port has been built. | ||
|
||
diff --git a/PCbuild/pyexpat.vcxproj b/PCbuild/pyexpat.vcxproj | ||
index b2d9f5d57d..4efb826a05 100644 | ||
--- a/PCbuild/pyexpat.vcxproj | ||
+++ b/PCbuild/pyexpat.vcxproj | ||
@@ -89,17 +89,19 @@ | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<ItemDefinitionGroup> | ||
- <ClCompile> | ||
+ <ClCompile Condition="false"> | ||
<AdditionalIncludeDirectories>$(PySourcePath)Modules\expat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;PYEXPAT_EXPORTS;HAVE_EXPAT_H;XML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
</ClCompile> | ||
</ItemDefinitionGroup> | ||
- <ItemGroup> | ||
+ <ItemGroup Condition="false"> | ||
<ClInclude Include="..\Modules\expat\xmlrole.h" /> | ||
<ClInclude Include="..\Modules\expat\xmltok.h" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClCompile Include="..\Modules\pyexpat.c" /> | ||
+ </ItemGroup> | ||
+ <ItemGroup Condition="false"> | ||
<ClCompile Include="..\Modules\expat\xmlparse.c" /> | ||
<ClCompile Include="..\Modules\expat\xmlrole.c" /> | ||
<ClCompile Include="..\Modules\expat\xmltok.c" /> | ||
-- | ||
2.28.0.windows.1 | ||
|
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