diff --git a/build_package.py b/build_package.py index 7b32dfe..cc845a4 100644 --- a/build_package.py +++ b/build_package.py @@ -334,7 +334,7 @@ def build_python(build_dir, include_dir, lib_dir, bin_dir, target_dir, licenses_ for f in python_dir.glob(glob_pattern): f.unlink() - # Overwrite project file which sets the platform toolkit to VS2019, and also adds the + # Overwrite project file which sets the platform toolkit to VS2022, and also adds the # C files needed for the modules we want to have embedded shutil.copyfile("python.vcxproj", python_build_dir.joinpath("python.vcxproj")) @@ -344,7 +344,7 @@ def build_python(build_dir, include_dir, lib_dir, bin_dir, target_dir, licenses_ "/m:" + str(multiprocessing.cpu_count()), "python.vcxproj", # These are now set in the vcxproj as well, except the Win10 SDK - "/p:PlatformToolset=v142", # Force it to use Visual Studio 2019 + "/p:PlatformToolset=v143", # Force it to use Visual Studio 2022 "/p:WindowsTargetPlatformVersion=10.0", # Force it to use the Win10 SDK "/p:OPENSSL_V=1.0.2n;Configuration=" + config], check=True, cwd=str(python_build_dir))