Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions setupext.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import tarfile
import textwrap
import urllib.request
from packaging import version

from setuptools import Distribution, Extension

Expand Down Expand Up @@ -699,8 +698,7 @@ def do_custom_build(self, env):
# Freetype 2.10.0+ support static builds.
msbuild_config = (
"Release Static"
if version.parse(LOCAL_FREETYPE_VERSION) >=
version.parse("2.10.0")
if [*map(int, LOCAL_FREETYPE_VERSION.split("."))] >= [2, 10]
else "Release"
)

Expand Down