[pywin32-checkins] pywin32 setup_win32all.py,1.32,1.33
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2004-09-20 02:54:48
|
Update of /cvsroot/pywin32/pywin32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9275 Modified Files: setup_win32all.py Log Message: Patch from Enzhou Wang to install the .h and .lib files necessary for people writing extensions which use pywintypes or pythoncom. Index: setup_win32all.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/setup_win32all.py,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** setup_win32all.py 13 Sep 2004 10:36:34 -0000 1.32 --- setup_win32all.py 20 Sep 2004 02:54:39 -0000 1.33 *************** *** 399,403 **** # real directory - this avoids the generated .lib/.exp build_temp = os.path.abspath(os.path.join(self.build_temp, "scintilla")) ! dir_util.mkpath(build_temp, verbose=self.verbose, dry_run=self.dry_run) makeargs.append("SUB_DIR_O=%s" % build_temp) makeargs.append("SUB_DIR_BIN=%s" % build_temp) --- 399,403 ---- # real directory - this avoids the generated .lib/.exp build_temp = os.path.abspath(os.path.join(self.build_temp, "scintilla")) ! self.mkpath(build_temp) makeargs.append("SUB_DIR_O=%s" % build_temp) makeargs.append("SUB_DIR_BIN=%s" % build_temp) *************** *** 416,423 **** else: base_name = "scintilla.dll" ! file_util.copy_file( os.path.join(self.build_temp, "scintilla", base_name), ! os.path.join(self.build_lib, "pythonwin"), ! verbose = self.verbose, dry_run = self.dry_run) def build_exefile(self, ext): --- 416,432 ---- else: base_name = "scintilla.dll" ! self.copy_file( os.path.join(self.build_temp, "scintilla", base_name), ! os.path.join(self.build_lib, "pythonwin")) ! ! # Copy cpp lib files needed to create Python COM extensions ! clib_files = (['win32', 'pywintypes.lib'], ! ['win32com', 'pythoncom.lib']) ! for clib_file in clib_files: ! target_dir = os.path.join(self.build_lib, clib_file[0], "libs") ! if not os.path.exists(target_dir): ! self.mkpath(target_dir) ! self.copy_file( ! os.path.join(self.build_temp, clib_file[1]), target_dir) def build_exefile(self, ext): *************** *** 1108,1111 **** --- 1117,1127 ---- 'com/win32comext/ifilter/demo/*.py', ]) + + # The headers and .lib files + [ + ('win32/include', ('win32/src/PyWinTypes.h',)), + ('win32com/include', ('com/win32com/src/include/PythonCOM.h', + 'com/win32com/src/include/PythonCOMRegister.h', + 'com/win32com/src/include/PythonCOMServer.h')) + ] + # And data files convert_data_files can't handle. [ |