Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 158ba2a

Browse filesBrowse files
committed
Simplify FreeType version check to avoid packaging
1 parent 223b2b1 commit 158ba2a
Copy full SHA for 158ba2a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed

‎setupext.py

Copy file name to clipboardExpand all lines: setupext.py
+1-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.