-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Building issue under windows. #3140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @GBillotey. @cgohlke - just wondering if you have any thoughts on this? |
I can confirm the build issue and that the fix works with msvc. It looks to me that building a dummy C extension without source files is "undefined" and could also break with other compilers/linkers (?). diff --git a/setupext.py b/setupext.py
index 868516d..7a8f285 100755
--- a/setupext.py
+++ b/setupext.py
@@ -918,6 +918,8 @@ class FreeType(SetupPackage):
alt_exec='freetype-config')
def get_extension(self):
+ if sys.platform == 'win32':
+ return None
ext = make_extension('freetype2', [])
self.add_flags(ext)
return ext |
@GBillotey - over to you if you're happy to submit a PR? |
Unfortunately due to a recent "flooding" issue with my home computer, I 2014-06-25 16:48 GMT+02:00 Phil Elson [email protected]:
|
patch suggested by cgohlke to fix issues with building FreeType extension Closes matplotlib#3140
Since PR #3067 I am unable to build from source (under windows).
This PR added a
get_extension
method to classFreeType
in setupext.py.A easy workaround is to explicitly return the default
None
under windows platform, but this seems a bit dirty.I would be happy to submit a PR for this but I would like first to take the advice of a setup.py / windows expert...
The text was updated successfully, but these errors were encountered: