--- build_ext.py 2006-05-26 14:23:12.000000000 +0200 +++ Copy of build_ext.py 2007-04-24 10:46:52.783768000 +0200 @@ -524,7 +524,7 @@ 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'