Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfc01ce commit abbd115Copy full SHA for abbd115
2 files changed
setupext.py
@@ -1270,6 +1270,8 @@ def get_extension(self):
1270
1271
ext = make_extension('matplotlib.backends._macosx', sources)
1272
ext.extra_link_args.extend(['-framework', 'Cocoa'])
1273
+ if platform.python_implementation().lower() == 'pypy':
1274
+ ext.extra_compile_args.append('-DPYPY=1')
1275
return ext
1276
1277
src/_macosx.m
@@ -277,7 +277,9 @@ static void lazy_init(void) {
277
278
NSApp = [NSApplication sharedApplication];
279
280
+#ifndef PYPY
281
PyOS_InputHook = wait_for_stdin;
282
+#endif
283
284
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
285
WindowServerConnectionManager* connectionManager = [WindowServerConnectionManager sharedManager];
0 commit comments