Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 059b9bb

Browse files
committed
FIX: macosx framework check
1 parent 7dc526e commit 059b9bb

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/_macosx.m

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2565,24 +2565,10 @@ static void context_cleanup(const void* info)
25652565

25662566
static bool verify_framework(void)
25672567
{
2568-
#ifdef COMPILING_FOR_10_6
2569-
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
2570-
NSRunningApplication* app = [NSRunningApplication currentApplication];
2571-
NSApplicationActivationPolicy activationPolicy = [app activationPolicy];
2572-
[pool release];
2573-
switch (activationPolicy) {
2574-
case NSApplicationActivationPolicyRegular:
2575-
case NSApplicationActivationPolicyAccessory:
2576-
return true;
2577-
case NSApplicationActivationPolicyProhibited:
2578-
break;
2579-
}
2580-
#else
25812568
ProcessSerialNumber psn;
25822569
if (CGMainDisplayID()!=0
25832570
&& GetCurrentProcess(&psn)==noErr
25842571
&& SetFrontProcess(&psn)==noErr) return true;
2585-
#endif
25862572
PyErr_SetString(PyExc_ImportError,
25872573
"Python is not installed as a framework. The Mac OS X backend will "
25882574
"not be able to function correctly if Python is not installed as a "

0 commit comments

Comments
 (0)