[Python-checkins] python/dist/src/Mac/Modules/osa setup.py, NONE, 1.1 _OSAmodule.c, 1.1, 1.2 osasupport.py, 1.2, 1.3

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Tue Dec 9 10:06:20 EST 2003


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

Modified Files:
	_OSAmodule.c osasupport.py 
Added Files:
	setup.py 
Log Message:
Make this module Python 2.3 compatible, and add a 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="OSA", version="0.1",
	ext_modules=[
		Extension('_OSA', ['_OSAmodule.c'],
		extra_link_args=['-framework', 'Carbon'])
	],
	py_modules=['OSA.OSA', 'OSA.OSAconst'],
	package_dir={'OSA':'../../../Lib/plat-mac/Carbon'}
	)

Index: _OSAmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/osa/_OSAmodule.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** _OSAmodule.c	3 Dec 2003 22:34:19 -0000	1.1
--- _OSAmodule.c	9 Dec 2003 15:06:17 -0000	1.2
***************
*** 16,19 ****
--- 16,22 ----
  
  
+ #if PY_VERSION_HEX < 0x02040000
+ PyObject *PyMac_GetOSErrException(void);
+ #endif
  #include <Carbon/Carbon.h>
  

Index: osasupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/osa/osasupport.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** osasupport.py	3 Dec 2003 23:20:13 -0000	1.2
--- osasupport.py	9 Dec 2003 15:06:18 -0000	1.3
***************
*** 21,24 ****
--- 21,27 ----
  
  includestuff = includestuff + """
+ #if PY_VERSION_HEX < 0x02040000
+ PyObject *PyMac_GetOSErrException(void);
+ #endif
  #include <Carbon/Carbon.h>
  





More information about the Python-checkins mailing list