Skip to content

Commit 1318e8f

Browse files
committed
maint: setupext.py for freetype had a Catch case for missing ft2build.h
The error was that the path was constructed manually with '\'. This is now fixed to use os.path.join Signed-off-by: Nick Papior <[email protected]>
1 parent 495e0bd commit 1318e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setupext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ def check(self):
906906
try:
907907
check_include_file(get_include_dirs(), 'ft2build.h', 'freetype')
908908
except CheckFailed:
909-
check_include_file(get_include_dirs(), 'freetype2\\ft2build.h', 'freetype')
909+
check_include_file(get_include_dirs(), os.path.join('freetype2', 'ft2build.h'), 'freetype')
910910
return 'Using unknown version found on system.'
911911

912912
status, output = subprocess.getstatusoutput(

0 commit comments

Comments
 (0)