Skip to content

Commit c6928df

Browse files
Osyotrroot
and
root
authored
[python3] Update to 3.11.4 (microsoft#31727)
* [python3] Update to 3.11.3 * Force set PythonForBuild on windows * Set LD_LIBRARY_PATH on unix * Always use vcpkg_find_acquire_program(PYTHON3) on windows * Remove LD_LIBRARY_PATH shenanigans * [vtk] Parse python version from include folder * Fix static builds on windows * Pass --with-build-python on unix * [omniorb] Fix python version in patch * Resurrect rpath patch * [python3] fix usage * [gobject-introspection] don't hardcode python version * Update vcpkg_find_aquire_program(PYTHON3) This is also required for gobject-introspection * [paraview] don't hardcode python version * [vtk-dicom] don't hardcode python version * Update python in vcpkgTools.xml * Fix host arch detection in vcpkg_find_acquire_program(PYTHON3) * [libpq] Don't hardcode python version * [shiva] Don't pass python variables * [vcpkg-get-python-packages] Delete unused file, update hardcoded python version * [python3] update to 3.11.4 * [omniorb] Use PREPEND in vcpkg_add_to_path So that python from vcpkg is picked before system python * libpq quickfix * re-fix libpq * fix vcpkg-get-python-packages * Make windows 7 patch compatible with unix builds * Copy pyd files to bin Also fixes copying files that do not belong to current build tree * Fix static builds * Speculatively fix osx regression * Fix omniorb on unix * [gobject-introspection] fix windows builds * [vtk] Update vendored copy of mpi4py for python 3.11 support * [mdl-sdk] Fix python * [gobject-introspection] fix the fix of a fix... * Update versions * Undo changes in gobject-introspection and vcpkg_find_aquire_program(PYTHON3) --------- Co-authored-by: root <root@DESKTOP-UIPL9V8>
1 parent 6da00e1 commit c6928df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+505
-438
lines changed

ports/gobject-introspection/portfile.cmake

+8-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ vcpkg_download_distfile(ARCHIVE
1010

1111
vcpkg_extract_source_archive(
1212
SOURCE_PATH
13-
ARCHIVE ${ARCHIVE}
13+
ARCHIVE "${ARCHIVE}"
1414
PATCHES
1515
0001-g-ir-tool-template.in.patch
1616
0002-cross-build.patch
@@ -29,7 +29,7 @@ if(VCPKG_CROSSCOMPILING AND
2929
endif()
3030

3131
vcpkg_configure_meson(
32-
SOURCE_PATH ${SOURCE_PATH}
32+
SOURCE_PATH "${SOURCE_PATH}"
3333
OPTIONS_DEBUG
3434
${OPTIONS_DEBUG}
3535
OPTIONS_RELEASE
@@ -50,8 +50,6 @@ vcpkg_copy_pdbs()
5050

5151
vcpkg_fixup_pkgconfig()
5252

53-
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
54-
5553
set(GI_TOOLS
5654
g-ir-compiler
5755
g-ir-generate
@@ -74,8 +72,13 @@ foreach(script IN LISTS GI_SCRIPTS)
7472
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/${script}")
7573
endforeach()
7674

75+
if(VCPKG_TARGET_IS_WINDOWS)
76+
file(GLOB _pyd_lib_files "${CURRENT_PACKAGES_DIR}/lib/gobject-introspection/giscanner/_giscanner.*.lib")
77+
file(REMOVE ${_pyd_lib_files})
78+
endif()
79+
7780
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}")
7881
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
7982
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/man")
8083

81-
set(VCPKG_POLICY_MISMATCHED_NUMBER_OF_BINARIES enabled) # _giscanner.lib
84+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

ports/gobject-introspection/python.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ index 2a9d68556..cffe9014c 100644
2424

2525
# python headers
2626
-cc.check_header('Python.h', dependencies: [python.dependency()], required: true)
27-
+libpython_dep = dependency('python-3.10', method : 'pkg-config')
27+
+libpython_dep = dependency('python-@0@'.format(python_version), method : 'pkg-config')
2828
+cc.check_header('Python.h', dependencies: [libpython_dep], required: true)
2929

ports/gobject-introspection/vcpkg.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gobject-introspection",
33
"version": "1.72.0",
4-
"port-version": 3,
4+
"port-version": 4,
55
"description": "A middleware layer between C libraries (using GObject) and language bindings.",
66
"homepage": "https://gi.readthedocs.io/en/latest/",
77
"license": null,

ports/libpq/build-msvc.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function(build_msvc build_type source_path)
3232
file(STRINGS "${CURRENT_INSTALLED_DIR}/lib/pkgconfig/openssl.pc" OPENSSL_VERSION REGEX "Version:")
3333
string(APPEND config "\$config->{openssl_version} = '${OPENSSL_VERSION}';\n")
3434
endif()
35-
string(APPEND config "\$config->{python_version} = '3.10';\n")
35+
string(APPEND config "\$config->{python_version} = '3.${PYTHON_VERSION_MINOR}';\n")
3636
string(APPEND config "\$config->{tcl_version} = '90';\n")
3737
file(WRITE "${build_path}/src/tools/msvc/config.pl" "${config}")
3838

ports/libpq/portfile.cmake

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ vcpkg_extract_source_archive(
2020
windows/spin_delay.patch
2121
)
2222

23+
file(GLOB _py3_include_path "${CURRENT_HOST_INSTALLED_DIR}/include/python3*")
24+
string(REGEX MATCH "python3\\.([0-9]+)" _python_version_tmp "${_py3_include_path}")
25+
set(PYTHON_VERSION_MINOR "${CMAKE_MATCH_1}")
26+
vcpkg_replace_string("${SOURCE_PATH}/configure.ac" "python_version=3.REPLACEME" "python_version=3.${PYTHON_VERSION_MINOR}")
27+
2328
if("client" IN_LIST FEATURES)
2429
set(HAS_TOOLS TRUE)
2530
else()

ports/libpq/unix/python.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ index a35395e..3c1b3e2 100644
88
PGAC_PATH_PYTHON
99
- PGAC_CHECK_PYTHON_EMBED_SETUP
1010
+ python_majorversion=3
11-
+ python_version=3.10
11+
+ python_version=3.REPLACEME
1212
+ PKG_CHECK_MODULES(PYTHON_EMBED, python-${python_version}-embed)
1313
+ python_includespec="${PYTHON_EMBED_CFLAGS}"
1414
+ python_libdir=[$(echo " ${PYTHON_EMBED_LIBS}" | sed -e 's/\( -L[^ ]*\).*/\1/' -e 's/^.* -L//')]

ports/libpq/vcpkg-libs.props.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<VcpkgLz4Libs>@CURRENT_INSTALLED_DIR@/debug/lib/lz4d.lib</VcpkgLz4Libs>
66
<VcpkgNlsLibs>@CURRENT_INSTALLED_DIR@/debug/lib/intl.lib;@CURRENT_INSTALLED_DIR@/debug/lib/iconv.lib;@CURRENT_INSTALLED_DIR@/debug/lib/charset.lib</VcpkgNlsLibs>
77
<VcpkgOpensslLibs>@CURRENT_INSTALLED_DIR@/debug/lib/libssl.lib;@CURRENT_INSTALLED_DIR@/debug/lib/libcrypto.lib;crypt32.lib;ws2_32.lib;secur32.lib</VcpkgOpensslLibs>
8-
<VcpkgPythonLibs>@CURRENT_INSTALLED_DIR@/debug/lib/python310_d.lib</VcpkgPythonLibs>
8+
<VcpkgPythonLibs>@CURRENT_INSTALLED_DIR@/debug/lib/python3@PYTHON_VERSION_MINOR@_d.lib</VcpkgPythonLibs>
99
<VcpkgTcl90Libs>@CURRENT_INSTALLED_DIR@/debug/lib/tcl90g.lib</VcpkgTcl90Libs>
1010
<VcpkgTcl90sLibs>@CURRENT_INSTALLED_DIR@/debug/lib/tcl90sg.lib</VcpkgTcl90sLibs>
1111
<VcpkgTcl90sxLibs>@CURRENT_INSTALLED_DIR@/debug/lib/tcl90sgx.lib</VcpkgTcl90sxLibs>
@@ -19,7 +19,7 @@
1919
<VcpkgLz4Libs>@CURRENT_INSTALLED_DIR@/lib/lz4.lib</VcpkgLz4Libs>
2020
<VcpkgNlsLibs>@CURRENT_INSTALLED_DIR@/lib/intl.lib;@CURRENT_INSTALLED_DIR@/lib/iconv.lib;@CURRENT_INSTALLED_DIR@/lib/charset.lib</VcpkgNlsLibs>
2121
<VcpkgOpensslLibs>@CURRENT_INSTALLED_DIR@/lib/libssl.lib;@CURRENT_INSTALLED_DIR@/lib/libcrypto.lib;crypt32.lib;ws2_32.lib;secur32.lib</VcpkgOpensslLibs>
22-
<VcpkgPythonLibs>@CURRENT_INSTALLED_DIR@/lib/python310.lib</VcpkgPythonLibs>
22+
<VcpkgPythonLibs>@CURRENT_INSTALLED_DIR@/lib/python3@PYTHON_VERSION_MINOR@.lib</VcpkgPythonLibs>
2323
<VcpkgTcl90Libs>@CURRENT_INSTALLED_DIR@/lib/tcl90.lib</VcpkgTcl90Libs>
2424
<VcpkgTcl90sLibs>@CURRENT_INSTALLED_DIR@/lib/tcl90s.lib</VcpkgTcl90sLibs>
2525
<VcpkgTcl90sxLibs>@CURRENT_INSTALLED_DIR@/lib/tcl90sx.lib</VcpkgTcl90sxLibs>

ports/libpq/vcpkg.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "libpq",
33
"version": "15.3",
4+
"port-version": 1,
45
"description": "The official database access API of postgresql",
56
"homepage": "https://www.postgresql.org/",
67
"license": "PostgreSQL",

ports/mdl-sdk/011-fix-python.patch

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/src/mdl/compiler/compiler_hlsl/gen_hlsl_intrinsics.py
2+
+++ b/src/mdl/compiler/compiler_hlsl/gen_hlsl_intrinsics.py
3+
@@ -383,7 +383,7 @@ namespace {
4+
def get_db_hlsl():
5+
global g_db_hlsl
6+
if g_db_hlsl is None:
7+
- with open(g_templ_name, "rU") as f:
8+
+ with open(g_templ_name, "r") as f:
9+
g_db_hlsl = db_hlsl(f)
10+
return g_db_hlsl
11+

ports/mdl-sdk/portfile.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ vcpkg_from_github(
101101
008-build-static-llvm.patch
102102
009-include-priority-vendored-llvm.patch
103103
010-workaround-gcc-bit.patch
104+
011-fix-python.patch
104105
)
105106

106107
string(COMPARE NOTEQUAL "${VCPKG_CRT_LINKAGE}" "static" _MVSC_CRT_LINKAGE_OPTION)

ports/mdl-sdk/vcpkg.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mdl-sdk",
33
"version": "2021.1.2",
4-
"port-version": 1,
4+
"port-version": 2,
55
"description": "NVIDIA Material Definition Language SDK",
66
"homepage": "https://github.com/NVIDIA/MDL-SDK",
77
"license": "BSD-3-Clause",

ports/omniorb/portfile.cmake

+7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
3434
set(ENV{PYTHONPATH} "${CURRENT_HOST_INSTALLED_DIR}/tools/python3/Lib${VCPKG_HOST_PATH_SEPARATOR}${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib/python${VCPKG_HOST_PATH_SEPARATOR}${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/python")
3535
endif()
3636

37+
if(NOT VCPKG_TARGET_IS_WINDOWS)
38+
file(GLOB _py3_include_path "${CURRENT_HOST_INSTALLED_DIR}/include/python3*")
39+
string(REGEX MATCH "python3\\.([0-9]+)" _python_version_tmp "${_py3_include_path}")
40+
set(PYTHON_VERSION_MINOR "${CMAKE_MATCH_1}")
41+
list(APPEND OPTIONS "PYTHON=${CURRENT_HOST_INSTALLED_DIR}/tools/python3/python3.${PYTHON_VERSION_MINOR}")
42+
endif()
43+
3744
vcpkg_find_acquire_program(FLEX)
3845
cmake_path(GET FLEX PARENT_PATH FLEX_DIR)
3946
vcpkg_add_to_path("${FLEX_DIR}")

ports/omniorb/python-fixes.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ index 1380018..fb321a5 100644
77
PYVERSION := $(shell $(PYTHON) -c 'import sys; sys.stdout.write(".".join(sys.version.split(".")[:2]))')
88
PYPREFIX := $(shell $(PYTHON) -c 'import sys; sys.stdout.write(sys.exec_prefix.replace("\\","/"))')
99
-PYINCDIR := $(shell $(PYTHON) -c 'import sys, distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_inc().replace("\\","/"))')
10-
+PYINCDIR := $(includedir)/python3.10
10+
+PYINCDIR := $(includedir)/python$(PYVERSION)
1111

1212
PythonSHAREDLIB_SUFFIX = $(shell $(PYTHON) -c 'import sys, distutils.sysconfig; sys.stdout.write((distutils.sysconfig.get_config_var("SO") or ".so").lstrip("."))')
1313

ports/omniorb/vcpkg.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "omniorb",
33
"version": "4.3.0",
4-
"port-version": 1,
4+
"port-version": 2,
55
"description": "omniORB is a robust high performance CORBA ORB for C++",
66
"homepage": "https://omniorb.sourceforge.io/",
77
"license": "LGPL-2.1-or-later",

ports/paraview/portfile.cmake

+4-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ file(COPY "${ICET_SOURCE_PATH}/" DESTINATION "${SOURCE_PATH}/ThirdParty/IceT/vtk
7676
if("python" IN_LIST FEATURES)
7777
set(python_ver "")
7878
if(NOT VCPKG_TARGET_IS_WINDOWS)
79-
set(python_ver 3.10)
79+
file(GLOB _py3_include_path "${CURRENT_HOST_INSTALLED_DIR}/include/python3*")
80+
string(REGEX MATCH "python3\\.([0-9]+)" _python_version_tmp ${_py3_include_path})
81+
set(PYTHON_VERSION_MINOR "${CMAKE_MATCH_1}")
82+
set(python_ver "3.${PYTHON_VERSION_MINOR}")
8083
endif()
8184
list(APPEND ADDITIONAL_OPTIONS
8285
-DPython3_FIND_REGISTRY=NEVER

ports/paraview/vcpkg.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "paraview",
33
"version": "5.11.0",
4-
"port-version": 2,
4+
"port-version": 3,
55
"description": "VTK-based Data Analysis and Visualization Application",
66
"homepage": "https://www.paraview.org/",
77
"license": "BSD-3-Clause",

ports/python3/0001-only-build-required-projects.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ diff --git a/PCbuild/pcbuild.proj b/PCbuild/pcbuild.proj
2626
index 4d416c589e..ede9868a8f 100644
2727
--- a/PCbuild/pcbuild.proj
2828
+++ b/PCbuild/pcbuild.proj
29-
@@ -49,17 +49,17 @@
29+
@@ -60,17 +60,17 @@
3030
<!-- python3.dll -->
3131
<Projects Include="python3dll.vcxproj" />
3232
<!-- py[w].exe -->
@@ -49,7 +49,7 @@ index 4d416c589e..ede9868a8f 100644
4949
+ <!-- _ssl will NOT build _socket as well -->
5050
+ <ExtensionModules Include="_socket" Condition="true" />
5151
+ <ExternalModules Include="_ssl;_hashlib" Condition="true" />
52-
<ExternalModules Include="_tkinter" Condition="$(IncludeTkinter) and $(Platform) != 'ARM' and $(Platform) != 'ARM64'" />
52+
<ExternalModules Include="_tkinter" Condition="$(IncludeTkinter)" />
5353
<ExtensionModules Include="@(ExternalModules->'%(Identity)')" Condition="$(IncludeExternals)" />
5454
<Projects Include="@(ExtensionModules->'%(Identity).vcxproj')" Condition="$(IncludeExtensions)" />
5555
--

ports/python3/0002-static-library.patch

+65-2
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,38 @@ builds the pythoncore as a static library instead of a DLL
99
PCbuild/pythoncore.vcxproj | 4 ++--
1010
2 files changed, 11 insertions(+), 2 deletions(-)
1111

12+
diff --git a/Modules/getpath.c b/Modules/getpath.c
13+
index d7d3cf081e..34269f0b75 100644
14+
--- a/Modules/getpath.c
15+
+++ b/Modules/getpath.c
16+
@@ -801,10 +801,12 @@ static int
17+
library_to_dict(PyObject *dict, const char *key)
18+
{
19+
#ifdef MS_WINDOWS
20+
+#ifdef Py_ENABLE_SHARED
21+
extern HMODULE PyWin_DLLhModule;
22+
if (PyWin_DLLhModule) {
23+
return winmodule_to_dict(dict, key, PyWin_DLLhModule);
24+
}
25+
+#endif
26+
#elif defined(WITH_NEXT_FRAMEWORK)
27+
static char modPath[MAXPATHLEN + 1];
28+
static int modPathInitialized = -1;
1229
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
1330
index d7d3cf081e..34269f0b75 100644
1431
--- a/PC/pyconfig.h
1532
+++ b/PC/pyconfig.h
16-
@@ -251,6 +251,7 @@ typedef int pid_t;
33+
@@ -251,6 +251,9 @@ typedef int pid_t;
1734

1835
/* For Windows the Python core is in a DLL by default. Test
1936
Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
37+
+#ifndef Py_NO_ENABLE_SHARED
2038
+#define Py_NO_ENABLE_SHARED
39+
+#endif
2140
#if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)
2241
# define Py_ENABLE_SHARED 1 /* standard symbol for shared library */
2342
# define MS_COREDLL /* deprecated old symbol */
24-
@@ -276,6 +277,14 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
43+
@@ -276,6 +277,15 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
2544
# endif /* _DEBUG */
2645
# endif /* _MSC_VER */
2746
# endif /* Py_BUILD_CORE */
@@ -30,6 +49,7 @@ index d7d3cf081e..34269f0b75 100644
3049
+# pragma comment(lib, "version.lib")
3150
+# pragma comment(lib, "shlwapi.lib")
3251
+# pragma comment(lib, "ws2_32.lib")
52+
+# pragma comment(lib, "bcrypt.lib")
3353
+# if Py_WINVER > 0x0601
3454
+# pragma comment(lib, "pathcch.lib")
3555
+# endif /* Py_WINVER */
@@ -71,6 +91,49 @@ index 2625d0293d..2f8bdaa931 100644
7191
<PreprocessorDefinitions Condition="$(IncludeExternals)">_Py_HAVE_ZLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
7292
</ClCompile>
7393
<Link>
94+
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
95+
index 2625d0293d..2f8bdaa931 100644
96+
--- a/PCbuild/_freeze_module.vcxproj
97+
+++ b/PCbuild/_freeze_module.vcxproj
98+
@@ -88,7 +88,7 @@
99+
<PropertyGroup Label="UserMacros" />
100+
<ItemDefinitionGroup>
101+
<ClCompile>
102+
- <PreprocessorDefinitions>Py_NO_ENABLE_SHARED;Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
103+
+ <PreprocessorDefinitions>Py_NO_ENABLE_SHARED;Py_BUILD_CORE;_CONSOLE;MS_DLL_ID="$(SysWinVer)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
104+
<Optimization>Disabled</Optimization>
105+
<WholeProgramOptimization>false</WholeProgramOptimization>
106+
</ClCompile>
107+
diff --git a/Python/dynload_win.c b/Python/dynload_win.c
108+
index ac49f7867a..f3583345ff 100644
109+
--- a/Python/dynload_win.c
110+
+++ b/Python/dynload_win.c
111+
@@ -163,6 +163,7 @@ static char *GetPythonImport (HINSTANCE hModule)
112+
return NULL;
113+
}
114+
115+
+#ifdef Py_ENABLE_SHARED
116+
/* Load python3.dll before loading any extension module that might refer
117+
to it. That way, we can be sure that always the python3.dll corresponding
118+
to this python DLL is loaded, not a python3.dll that might be on the path
119+
@@ -216,6 +217,7 @@ _Py_CheckPython3(void)
120+
return hPython3 != NULL;
121+
#undef MAXPATHLEN
122+
}
123+
+#endif /* Py_ENABLE_SHARED */
124+
125+
dl_funcptr _PyImport_FindSharedFuncptrWindows(const char *prefix,
126+
const char *shortname,
127+
@@ -224,7 +226,9 @@ dl_funcptr _PyImport_FindSharedFuncptrWindows(const char *prefix,
128+
dl_funcptr p;
129+
char funcname[258], *import_python;
130+
131+
+#ifdef Py_ENABLE_SHARED
132+
_Py_CheckPython3();
133+
+#endif /* Py_ENABLE_SHARED */
134+
135+
#if USE_UNICODE_WCHAR_CACHE
136+
const wchar_t *wpathname = _PyUnicode_AsUnicode(pathname);
74137
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
75138
index ac49f7867a..f3583345ff 100644
76139
--- a/Python/sysmodule.c

ports/python3/0003-use-vcpkg-zlib.patch

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
1313
index dbe236829a..5f30a35eb3 100644
1414
--- a/PCbuild/pythoncore.vcxproj
1515
+++ b/PCbuild/pythoncore.vcxproj
16-
@@ -507,8 +507,10 @@
17-
<ClCompile Include="..\Python\thread.c" />
18-
<ClCompile Include="..\Python\traceback.c" />
16+
@@ -540,8 +540,10 @@
17+
<ClCompile Include="..\Python\deepfreeze\deepfreeze.c" />
18+
<!-- END deepfreeze -->
1919
</ItemGroup>
2020
- <ItemGroup Condition="$(IncludeExternals)">
2121
+ <ItemGroup>
@@ -25,7 +25,7 @@ index dbe236829a..5f30a35eb3 100644
2525
<ClCompile Include="$(zlibDir)\adler32.c" />
2626
<ClCompile Include="$(zlibDir)\compress.c" />
2727
<ClCompile Include="$(zlibDir)\crc32.c" />
28-
@@ -556,7 +558,7 @@
28+
@@ -593,7 +595,7 @@
2929
<Target Name="_WarnAboutToolset" BeforeTargets="PrepareForBuild" Condition="$(PlatformToolset) != 'v140' and $(PlatformToolset) != 'v141' and $(PlatformToolset) != 'v142' and $(PlatformToolset) != 'v143'">
3030
<Warning Text="Toolset $(PlatformToolset) is not used for official builds. Your build may have errors or incompatibilities." />
3131
</Target>

ports/python3/0004-devendor-external-dependencies.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ index b2d9f5d57d..4efb826a05 100644
9797
- <ClCompile>
9898
+ <ClCompile Condition="false">
9999
<AdditionalIncludeDirectories>$(PySourcePath)Modules\expat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
100-
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;PYEXPAT_EXPORTS;HAVE_EXPAT_H;XML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
100+
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;PYEXPAT_EXPORTS;XML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
101101
</ClCompile>
102102
</ItemDefinitionGroup>
103103
- <ItemGroup>

0 commit comments

Comments
 (0)