Skip to content

Commit 08cb182

Browse files
committed
minor refactoring
1 parent af3a7af commit 08cb182

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

setupext.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,10 +689,12 @@ def do_custom_build(self, env):
689689
cc = get_ccompiler()
690690
cc.initialize() # Get msbuild in the %PATH% of cc.spawn.
691691
# 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'
692+
msbuild_config = (
693+
"Release Static"
694+
if version.parse(LOCAL_FREETYPE_VERSION) >= version.parse("2.10.0")
695+
else "Release"
696+
)
697+
696698
cc.spawn(["msbuild", str(sln_path),
697699
"/t:Clean;Build",
698700
f"/p:Configuration={msbuild_config};Platform={msbuild_platform}"])

0 commit comments

Comments
 (0)