We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af3a7af commit 08cb182Copy full SHA for 08cb182
setupext.py
@@ -689,10 +689,12 @@ def do_custom_build(self, env):
689
cc = get_ccompiler()
690
cc.initialize() # Get msbuild in the %PATH% of cc.spawn.
691
# Freetype 2.10.0+ support static builds.
692
- if version.parse(LOCAL_FREETYPE_VERSION) >= version.parse("2.10.0"):
693
- msbuild_config = 'Release Static'
694
- else:
695
- msbuild_config = 'Release'
+ msbuild_config = (
+ "Release Static"
+ if version.parse(LOCAL_FREETYPE_VERSION) >= version.parse("2.10.0")
+ else "Release"
696
+ )
697
+
698
cc.spawn(["msbuild", str(sln_path),
699
"/t:Clean;Build",
700
f"/p:Configuration={msbuild_config};Platform={msbuild_platform}"])
0 commit comments