[Python-checkins] python/dist/src/Lib/distutils msvccompiler.py,
1.58, 1.59 ccompiler.py, 1.57, 1.58 bcppcompiler.py, 1.15, 1.16
theller at users.sourceforge.net
theller at users.sourceforge.net
Fri Dec 5 15:12:25 EST 2003
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1:/tmp/cvs-serv21054
Modified Files:
msvccompiler.py ccompiler.py bcppcompiler.py
Log Message:
Compile the files in the same order they are passed to the compiler.
Use case: Sometimes 'compiling' source files (with SWIG, for example)
creates additionl files which included by later sources. The win32all
setup script requires this.
There is no SF item for this, but it was discussed on distutils-sig:
http://mail.python.org/pipermail/distutils-sig/2003-November/003514.html
Index: msvccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/msvccompiler.py,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** msvccompiler.py 28 Nov 2003 19:42:51 -0000 1.58
--- msvccompiler.py 5 Dec 2003 20:12:23 -0000 1.59
***************
*** 292,296 ****
compile_opts.extend(self.compile_options)
! for obj, (src, ext) in build.items():
if debug:
# pass the full pathname to MSVC in debug mode,
--- 292,300 ----
compile_opts.extend(self.compile_options)
! for obj in objects:
! try:
! src, ext = build[obj]
! except KeyError:
! continue
if debug:
# pass the full pathname to MSVC in debug mode,
Index: ccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/ccompiler.py,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** ccompiler.py 24 Apr 2003 19:49:23 -0000 1.57
--- ccompiler.py 5 Dec 2003 20:12:23 -0000 1.58
***************
*** 692,696 ****
cc_args = self._get_cc_args(pp_opts, debug, extra_preargs)
! for obj, (src, ext) in build.items():
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
--- 692,700 ----
cc_args = self._get_cc_args(pp_opts, debug, extra_preargs)
! for obj in objects:
! try:
! src, ext = build[obj]
! except KeyError:
! continue
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
Index: bcppcompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/bcppcompiler.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** bcppcompiler.py 19 Nov 2002 13:12:26 -0000 1.15
--- bcppcompiler.py 5 Dec 2003 20:12:23 -0000 1.16
***************
*** 97,101 ****
compile_opts.extend (self.compile_options)
! for obj, (src, ext) in build.items():
# XXX why do the normpath here?
src = os.path.normpath(src)
--- 97,105 ----
compile_opts.extend (self.compile_options)
! for obj in objects:
! try:
! src, ext = build[obj]
! except KeyError:
! continue
# XXX why do the normpath here?
src = os.path.normpath(src)
More information about the Python-checkins
mailing list