File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1270,6 +1270,8 @@ def get_extension(self):
1270
1270
1271
1271
ext = make_extension ('matplotlib.backends._macosx' , sources )
1272
1272
ext .extra_link_args .extend (['-framework' , 'Cocoa' ])
1273
+ if platform .python_implementation ().lower () == 'pypy' :
1274
+ ext .extra_compile_args .append ('-DPYPY=1' )
1273
1275
return ext
1274
1276
1275
1277
Original file line number Diff line number Diff line change 3
3
#include < sys/socket.h>
4
4
#include < Python.h>
5
5
6
+ #ifndef PYPY
6
7
/* Remove this once Python is fixed: https://bugs.python.org/issue23237 */
7
8
#define PYOSINPUTHOOK_REPETITIVE 1
9
+ #endif
8
10
9
11
/* Proper way to check for the OS X version we are compiling for, from
10
12
http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development */
@@ -277,7 +279,9 @@ static void lazy_init(void) {
277
279
278
280
NSApp = [NSApplication sharedApplication ];
279
281
282
+ #ifndef PYPY
280
283
PyOS_InputHook = wait_for_stdin;
284
+ #endif
281
285
282
286
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc ] init ];
283
287
WindowServerConnectionManager* connectionManager = [WindowServerConnectionManager sharedManager ];
You can’t perform that action at this time.
0 commit comments