[Python-checkins] python/dist/src/Lib/distutils/command build_ext.py,1.84,1.85
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
2002年6月18日 11:40:57 -0700
Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory usw-pr-cvs1:/tmp/cvs-serv8560
Modified Files:
build_ext.py
Log Message:
Only import msvccompiler on win32 platforms.
Index: build_ext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/build_ext.py,v
retrieving revision 1.84
retrieving revision 1.85
diff -C2 -d -r1.84 -r1.85
*** build_ext.py 13 Jun 2002 17:32:20 -0000 1.84
--- build_ext.py 18 Jun 2002 18:40:54 -0000 1.85
***************
*** 625,639 ****
# to need it mentioned explicitly, though, so that's what we do.
# Append '_d' to the python import library on debug builds.
! from distutils.msvccompiler import MSVCCompiler
! if sys.platform == "win32" and \
! not isinstance(self.compiler, MSVCCompiler):
! template = "python%d%d"
! if self.debug:
! template = template + '_d'
! pythonlib = (template %
! (sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff))
! # don't extend ext.libraries, it may be shared with other
! # extensions, it is a reference to the original list
! return ext.libraries + [pythonlib]
elif sys.platform == "os2emx":
# EMX/GCC requires the python library explicitly, and I
--- 625,639 ----
# to need it mentioned explicitly, though, so that's what we do.
# Append '_d' to the python import library on debug builds.
! if sys.platform == "win32":
! from distutils.msvccompiler import MSVCCompiler
! if not isinstance(self.compiler, MSVCCompiler):
! template = "python%d%d"
! if self.debug:
! template = template + '_d'
! pythonlib = (template %
! (sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff))
! # don't extend ext.libraries, it may be shared with other
! # extensions, it is a reference to the original list
! return ext.libraries + [pythonlib]
elif sys.platform == "os2emx":
# EMX/GCC requires the python library explicitly, and I