diff --git a/setupext.py b/setupext.py index cb1794a29b02..6645f439a6e8 100755 --- a/setupext.py +++ b/setupext.py @@ -918,6 +918,8 @@ def add_flags(self, ext): alt_exec='freetype-config') def get_extension(self): + if sys.platform == 'win32': + return None ext = make_extension('freetype2', []) self.add_flags(ext) return ext