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

Skip to content

Commit 08c41b1

Browse files
committed
Merge pull request #3414 from remram44/fix-missing-freetype
Fixes TypeError when installing without freetype
2 parents 9891b67 + ec11832 commit 08c41b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setupext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ def check(self):
937937

938938
# Early versions of freetype grep badly inside freetype-config,
939939
# so catch those cases. (tested with 2.5.3).
940-
if 'No such file or directory\ngrep:' in version:
940+
if version is None or 'No such file or directory\ngrep:' in version:
941941
version = self.version_from_header()
942942

943943
return self._check_for_pkg_config(

0 commit comments

Comments
 (0)