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

Skip to content

Commit 66ee42d

Browse files
committed
Fix for bug #3029.
The FreeType class does not override the ``get_extension`` method, by default this method will return None. https://github.com/matplotlib/matplotlib/blob/6cf6063c7a3037d52545b2b7268623d33da0ecdd/setupext.py#L387 When calling the ``_check_for_pkg_config`` method a new extension will be created that what won't contain the original flags added by the ``add_flags`` method. https://github.com/matplotlib/matplotlib/blob/6cf6063c7a3037d52545b2b7268623d33da0ecdd/setupext.py#L438
1 parent 9564d80 commit 66ee42d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setupext.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,10 @@ def add_flags(self, ext):
917917
default_libraries=['freetype', 'z'],
918918
alt_exec='freetype-config')
919919

920+
def get_extension(self):
921+
ext = make_extension('freetype2', [])
922+
self.add_flags(ext)
923+
return ext
920924

921925
class FT2Font(SetupPackage):
922926
name = 'ft2font'

0 commit comments

Comments
 (0)