File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 }} while(0)
1616
1717
18+ #if PY_VERSION_HEX < 0x02040000
19+ PyObject * PyMac_GetOSErrException (void );
20+ #endif
21+
1822#include <ApplicationServices/ApplicationServices.h>
1923
2024/*
Original file line number Diff line number Diff line change 2929LSItemInfoRecord = OpaqueType ("LSItemInfoRecord" , "LSItemInfoRecord" )
3030
3131includestuff = includestuff + """
32+ #if PY_VERSION_HEX < 0x02040000
33+ PyObject *PyMac_GetOSErrException(void);
34+ #endif
35+
3236#include <ApplicationServices/ApplicationServices.h>
3337
3438/*
Original file line number Diff line number Diff line change 1+ # This is a temporary setup script to allow distribution of
2+ # MacPython 2.4 modules for MacPython 2.3.
3+
4+ from distutils .core import Extension , setup
5+
6+ setup (name = "LaunchServices" , version = "0.1" ,
7+ ext_modules = [
8+ Extension ('_Launch' , ['_Launchmodule.c' ],
9+ extra_link_args = ['-framework' , 'ApplicationServices' ])
10+ ],
11+ py_modules = ['LaunchServices.Launch' , 'LaunchServices.LaunchServices' ],
12+ package_dir = {'LaunchServices' :'../../../Lib/plat-mac/Carbon' }
13+ )
You can’t perform that action at this time.
0 commit comments