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

Skip to content

Commit 5ac3044

Browse files
committed
BLD: also find newer freetype
1 parent aa4d19c commit 5ac3044

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setupext.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,10 @@ def check(self):
918918
return "Using local version for testing"
919919

920920
if sys.platform == 'win32':
921-
check_include_file(get_include_dirs(), 'ft2build.h', 'freetype')
921+
try:
922+
check_include_file(get_include_dirs(), 'ft2build.h', 'freetype')
923+
except CheckFailed:
924+
check_include_file(get_include_dirs(), 'freetype2\\ft2build.h', 'freetype')
922925
return 'Using unknown version found on system.'
923926

924927
status, output = getstatusoutput("freetype-config --ftversion")

0 commit comments

Comments
 (0)