Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27cfec2

Browse files
authored
Merge pull request #22653 from QuLogic/simpler-freetype-check
2 parents 945692c + 158ba2a commit 27cfec2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

setupext.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import tarfile
1515
import textwrap
1616
import urllib.request
17-
from packaging import version
1817

1918
from setuptools import Distribution, Extension
2019

@@ -699,8 +698,7 @@ def do_custom_build(self, env):
699698
# Freetype 2.10.0+ support static builds.
700699
msbuild_config = (
701700
"Release Static"
702-
if version.parse(LOCAL_FREETYPE_VERSION) >=
703-
version.parse("2.10.0")
701+
if [*map(int, LOCAL_FREETYPE_VERSION.split("."))] >= [2, 10]
704702
else "Release"
705703
)
706704

0 commit comments

Comments
 (0)