From 158ba2a640493ac92beeb381c259baefa28bd064 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 15 Mar 2022 18:42:57 -0400 Subject: [PATCH] Simplify FreeType version check to avoid packaging --- setupext.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setupext.py b/setupext.py index bc4c1b71c505..14ca2b5fd8ef 100644 --- a/setupext.py +++ b/setupext.py @@ -14,7 +14,6 @@ import tarfile import textwrap import urllib.request -from packaging import version from setuptools import Distribution, Extension @@ -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" )