]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Made this module compatible with Python2.3, and added a temporary setup
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 9 Dec 2003 14:51:21 +0000 (14:51 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 9 Dec 2003 14:51:21 +0000 (14:51 +0000)
script that allows it to be built for that Python.

Mac/Modules/launch/_Launchmodule.c
Mac/Modules/launch/launchsupport.py
Mac/Modules/launch/setup.py [new file with mode: 0644]

index 9180350bd554fc12df66cfbafdff6b71dd5cb67f..8e0d72630f90322de212ef089a19f04c09285ac8 100644 (file)
     }} while(0)
 
 
+#if PY_VERSION_HEX < 0x02040000
+PyObject *PyMac_GetOSErrException(void);
+#endif
+
 #include <ApplicationServices/ApplicationServices.h>
 
 /*
index 7816a46410b7f66a22715c1b1d007fa0adfc8dfb..122278ca191b7c731c50c7e51e56410a4d987a28 100644 (file)
@@ -29,6 +29,10 @@ OptCFStringRef = OpaqueByValueType("CFStringRef", "OptCFStringRefObj")
 LSItemInfoRecord = OpaqueType("LSItemInfoRecord", "LSItemInfoRecord")
 
 includestuff = includestuff + """
+#if PY_VERSION_HEX < 0x02040000
+PyObject *PyMac_GetOSErrException(void);
+#endif
+
 #include <ApplicationServices/ApplicationServices.h>
 
 /*
diff --git a/Mac/Modules/launch/setup.py b/Mac/Modules/launch/setup.py
new file mode 100644 (file)
index 0000000..4b101cf
--- /dev/null
@@ -0,0 +1,13 @@
+# This is a temporary setup script to allow distribution of
+# MacPython 2.4 modules for MacPython 2.3.
+
+from distutils.core import Extension, setup
+
+setup(name="LaunchServices", version="0.1",
+       ext_modules=[
+               Extension('_Launch', ['_Launchmodule.c'],
+               extra_link_args=['-framework', 'ApplicationServices'])
+       ],
+       py_modules=['LaunchServices.Launch', 'LaunchServices.LaunchServices'],
+       package_dir={'LaunchServices':'../../../Lib/plat-mac/Carbon'}
+       )