[Python-checkins] CVS: python/dist/src/Lib/distutils cygwinccompiler.py,1.9,1.10
Eric S. Raymond
esr@users.sourceforge.net
Fri, 09 Feb 2001 04:14:04 -0800
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory usw-pr-cvs1:/tmp/cvs-serv21577
Modified Files:
cygwinccompiler.py
Log Message:
String method conversion.
Index: cygwinccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/cygwinccompiler.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** cygwinccompiler.py 2000/12/12 23:11:39 1.9
--- cygwinccompiler.py 2001/02/09 12:14:02 1.10
***************
*** 366,373 ****
from distutils import sysconfig
! import string,sys
# if sys.version contains GCC then python was compiled with
# GCC, and the config.h file should be OK
! if string.find(sys.version,"GCC") >= 0:
return (CONFIG_H_OK, "sys.version mentions 'GCC'")
--- 366,373 ----
from distutils import sysconfig
! import sys
# if sys.version contains GCC then python was compiled with
# GCC, and the config.h file should be OK
! if sys.version.find("GCC") >= 0:
return (CONFIG_H_OK, "sys.version mentions 'GCC'")
***************
*** 388,392 ****
else:
# "config.h" contains an "#ifdef __GNUC__" or something similar
! if string.find(s,"__GNUC__") >= 0:
return (CONFIG_H_OK, "'%s' mentions '__GNUC__'" % fn)
else:
--- 388,392 ----
else:
# "config.h" contains an "#ifdef __GNUC__" or something similar
! if s.find("__GNUC__") >= 0:
return (CONFIG_H_OK, "'%s' mentions '__GNUC__'" % fn)
else: