summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-12-21 15:34:17 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-12-21 15:34:17 (GMT)
commit3d2d980f5036c5b8c3bfce80dc570cd1e164f613 (patch)
tree0d21003dc286b4713c873ca8bb4c530b399badd7 /Lib/distutils
parented9057083bcdcce37ddb66bc01e9b7fddb5ea206 (diff)
downloadcpython-3d2d980f5036c5b8c3bfce80dc570cd1e164f613.zip
cpython-3d2d980f5036c5b8c3bfce80dc570cd1e164f613.tar.gz
cpython-3d2d980f5036c5b8c3bfce80dc570cd1e164f613.tar.bz2
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).
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/extension.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/extension.py b/Lib/distutils/extension.py
index fbae7c5..a31ccbc 100644
--- a/Lib/distutils/extension.py
+++ b/Lib/distutils/extension.py
@@ -160,7 +160,7 @@ def read_setup_file (filename):
suffix = os.path.splitext(word)[1]
switch = word[0:2] ; value = word[2:]
- if suffix in (".c", ".cc", ".cpp", ".cxx", ".c++"):
+ 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
# worry about?