[Python-checkins] r54941 - in python/trunk: Lib/distutils/command/build_ext.py Misc/NEWS
georg.brandl
python-checkins at python.org
Tue Apr 24 17:27:19 CEST 2007
Author: georg.brandl
Date: Tue Apr 24 17:27:13 2007
New Revision: 54941
Modified:
python/trunk/Lib/distutils/command/build_ext.py
python/trunk/Misc/NEWS
Log:
Bug #1706381: Specifying the SWIG option "-c++" in the setup.py file
(as opposed to the command line) will now write file names ending in
".cpp" too.
Modified: python/trunk/Lib/distutils/command/build_ext.py
==============================================================================
--- python/trunk/Lib/distutils/command/build_ext.py (original)
+++ python/trunk/Lib/distutils/command/build_ext.py Tue Apr 24 17:27:13 2007
@@ -533,7 +533,8 @@
if self.swig_cpp:
log.warn("--swig-cpp is deprecated - use --swig-opts=-c++")
- if self.swig_cpp or ('-c++' in self.swig_opts):
+ if self.swig_cpp or ('-c++' in self.swig_opts) or \
+ ('-c++' in extension.swig_opts):
target_ext = '.cpp'
else:
target_ext = '.c'
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Tue Apr 24 17:27:13 2007
@@ -209,6 +209,10 @@
Library
-------
+- Bug #1706381: Specifying the SWIG option "-c++" in the setup.py file
+ (as opposed to the command line) will now write file names ending in
+ ".cpp" too.
+
- As specified in RFC 2616, an HTTP response like 2xx indicates that
the client's request was successfully received, understood, and accepted.
Now in these cases no error is raised in urllib2.
More information about the Python-checkins
mailing list