[Python-checkins] python/dist/src/Mac/Modules/launch setup.py, NONE, 1.1 _Launchmodule.c, 1.3, 1.4 launchsupport.py, 1.2, 1.3

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Tue Dec 9 09:51:23 EST 2003


Update of /cvsroot/python/python/dist/src/Mac/Modules/launch
In directory sc8-pr-cvs1:/tmp/cvs-serv6829

Modified Files:
	_Launchmodule.c launchsupport.py 
Added Files:
	setup.py 
Log Message:
Made this module compatible with Python2.3, and added a temporary setup
script that allows it to be built for that Python.


--- NEW FILE: setup.py ---
# 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'}
	)

Index: _Launchmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/launch/_Launchmodule.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** _Launchmodule.c	3 Dec 2003 23:20:12 -0000	1.3
--- _Launchmodule.c	9 Dec 2003 14:51:21 -0000	1.4
***************
*** 16,19 ****
--- 16,23 ----
  
  
+ #if PY_VERSION_HEX < 0x02040000
+ PyObject *PyMac_GetOSErrException(void);
+ #endif
+ 
  #include <ApplicationServices/ApplicationServices.h>
  

Index: launchsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/launch/launchsupport.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** launchsupport.py	3 Dec 2003 23:20:12 -0000	1.2
--- launchsupport.py	9 Dec 2003 14:51:21 -0000	1.3
***************
*** 30,33 ****
--- 30,37 ----
  
  includestuff = includestuff + """
+ #if PY_VERSION_HEX < 0x02040000
+ PyObject *PyMac_GetOSErrException(void);
+ #endif
+ 
  #include <ApplicationServices/ApplicationServices.h>
  





More information about the Python-checkins mailing list