Skip to content

Commit

Permalink
Update build_package.py
Browse files Browse the repository at this point in the history
v143
  • Loading branch information
DudeMcDude authored Jul 8, 2022
1 parent e74b1a6 commit 4f4af4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

Expand All @@ -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))
Expand Down

0 comments on commit 4f4af4d

Please sign in to comment.