[Python-checkins] CVS: python/dist/src/Lib/distutils extension.py,1.9,1.9.6.1

Michael Hudson mwh@users.sourceforge.net
Fri, 28 Dec 2001 02:20:08 -0800


Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory usw-pr-cvs1:/tmp/cvs-serv21226

Modified Files:
      Tag: release22-maint
	extension.py 
Log Message:
Backport of akuchling's checkin of 1.10:

Suggested by Pete Shinners: treat .m and .mm files as source code.

Question for Jack Jansen: is this reasonable?

Candidate for 2.2 release branch (if Jack thinks it's OK).

Not sure how this wasn't on the branch already, seeing as I thought it 
went into 2.2.



Index: extension.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/extension.py,v
retrieving revision 1.9
retrieving revision 1.9.6.1
diff -C2 -d -r1.9 -r1.9.6.1
*** extension.py	2001/12/06 20:51:35	1.9
--- extension.py	2001/12/28 10:20:06	1.9.6.1
***************
*** 161,165 ****
              switch = word[0:2] ; value = word[2:]
  
!             if suffix in (".c", ".cc", ".cpp", ".cxx", ".c++"):
                  # hmm, should we do something about C vs. C++ sources?
                  # or leave it up to the CCompiler implementation to
--- 161,165 ----
              switch = word[0:2] ; value = word[2:]
  
!             if suffix in (".c", ".cc", ".cpp", ".cxx", ".c++", ".m", ".mm"):
                  # hmm, should we do something about C vs. C++ sources?
                  # or leave it up to the CCompiler implementation to