File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ def get_extensions(self):
384
384
])
385
385
add_numpy_flags (ext )
386
386
add_libagg_flags_and_sources (ext )
387
- FreeType () .add_flags (ext )
387
+ FreeType .add_flags (ext )
388
388
yield ext
389
389
# c_internal_utils
390
390
ext = Extension (
@@ -412,7 +412,7 @@ def get_extensions(self):
412
412
"src/mplutils.cpp" ,
413
413
"src/py_converters.cpp" ,
414
414
])
415
- FreeType () .add_flags (ext )
415
+ FreeType .add_flags (ext )
416
416
add_numpy_flags (ext )
417
417
add_libagg_flags (ext )
418
418
yield ext
@@ -569,7 +569,8 @@ def add_qhull_flags(ext):
569
569
class FreeType (SetupPackage ):
570
570
name = "freetype"
571
571
572
- def add_flags (self , ext ):
572
+ @classmethod
573
+ def add_flags (cls , ext ):
573
574
ext .sources .insert (0 , 'src/checkdep_freetype2.c' )
574
575
if options .get ('system_freetype' ):
575
576
pkg_config_setup_extension (
You can’t perform that action at this time.
0 commit comments