[pywin32-checkins] pywin32 setup_win32all_core.py,1.10,1.11
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-11-10 04:49:03
|
Update of /cvsroot/pywin32/pywin32 In directory sc8-pr-cvs1:/tmp/cvs-serv2059 Modified Files: setup_win32all_core.py Log Message: Add pythonwin extensions. Index: setup_win32all_core.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/setup_win32all_core.py,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** setup_win32all_core.py 10 Nov 2003 04:09:38 -0000 1.10 --- setup_win32all_core.py 10 Nov 2003 04:49:00 -0000 1.11 *************** *** 86,89 **** --- 86,99 ---- return result + class WinExt_pythonwin(WinExt): + def __init__ (self, name, **kw): + if not kw.has_key("dsp_file"): + kw["dsp_file"] = "pythonwin/" + name + ".dsp" + kw.setdefault("extra_compile_args", []).extend( + ['-D_AFXDLL', '-D_AFXEXT','-D_MBCS']) + WinExt.__init__(self, name, **kw) + def get_pywin32_dir(self): + return "pythonwin" + class WinExt_win32(WinExt): def __init__ (self, name, **kw): *************** *** 327,330 **** --- 337,348 ---- WinExt_win32com('shell', libraries='shell32') ] + + pythonwin_extensions = [ + WinExt_pythonwin("win32ui", + extra_compile_args = + ['-DBUILD_PYW']), + WinExt_pythonwin("win32uiole"), + WinExt_pythonwin("dde"), + ] ################################################################ *************** *** 341,345 **** }, ! ext_modules = win32_extensions + com_extensions, ## packages=['win32', --- 359,363 ---- }, ! ext_modules = win32_extensions + com_extensions + pythonwin_extensions, ## packages=['win32', |