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

Skip to content

Commit 1036621

Browse files
committed
Added a fix to get freetype headers working on Fedora 17 (with yum-builddep dependancies installed)
1 parent 31ff494 commit 1036621

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setupext.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,9 @@ def add_ft2font_flags(module):
657657
if os.path.exists(p): module.library_dirs.append(p)
658658
else:
659659
add_base_flags(module)
660+
basedirs = module.include_dirs[:]
661+
for d in basedirs:
662+
module.include_dirs.append(os.path.join(d, 'freetype2'))
660663
module.libraries.append('z')
661664

662665
# put this last for library link order

0 commit comments

Comments
 (0)