Skip to content

Commit

Permalink
Fix for bug #3029.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
razius committed May 16, 2014
1 parent 9564d80 commit 66ee42d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setupext.py
Expand Up @@ -917,6 +917,10 @@ def add_flags(self, ext):
default_libraries=['freetype', 'z'],
alt_exec='freetype-config')

def get_extension(self):
ext = make_extension('freetype2', [])
self.add_flags(ext)
return ext

class FT2Font(SetupPackage):
name = 'ft2font'
Expand Down

0 comments on commit 66ee42d

Please sign in to comment.