[Python-checkins] CVS: distutils/distutils msvccompiler.py,1.30,1.31
Greg Ward
python-dev@python.org
Sat, 24 Jun 2000 19:31:19 -0700
Update of /cvsroot/python/distutils/distutils
In directory slayer.i.sourceforge.net:/tmp/cvs-serv16019
Modified Files:
msvccompiler.py
Log Message:
Define the 'executables' class attribute so the CCompiler constructor
doesn't blow up. We don't currently use the 'set_executables()' bureaucracy,
although it would be nice to do so for consistency with UnixCCompiler.
Index: msvccompiler.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/msvccompiler.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** msvccompiler.py 2000/05/30 02:02:49 1.30
--- msvccompiler.py 2000/06/25 02:31:16 1.31
***************
*** 168,171 ****
--- 168,178 ----
compiler_type = 'msvc'
+ # Just set this so CCompiler's constructor doesn't barf. We currently
+ # don't use the 'set_executables()' bureaucracy provided by CCompiler,
+ # as it really isn't necessary for this sort of single-compiler class.
+ # Would be nice to have a consistent interface with UnixCCompiler,
+ # though, so it's worth thinking about.
+ executables = {}
+
# Private class data (need to distinguish C from C++ source for compiler)
_c_extensions = ['.c']
***************
*** 296,300 ****
lib_args.extend (extra_postargs)
try:
! self.spawn ([self.link] + ld_args)
except DistutilsExecError, msg:
raise LibError, msg
--- 303,307 ----
lib_args.extend (extra_postargs)
try:
! self.spawn ([self.lib] + lib_args)
except DistutilsExecError, msg:
raise LibError, msg