Chris@87: from __future__ import division, absolute_import, print_function Chris@87: Chris@87: from distutils.unixccompiler import UnixCCompiler Chris@87: Chris@87: class PathScaleCCompiler(UnixCCompiler): Chris@87: Chris@87: """ Chris@87: PathScale compiler compatible with an gcc built Python. Chris@87: """ Chris@87: Chris@87: compiler_type = 'pathcc' Chris@87: cc_exe = 'pathcc' Chris@87: cxx_exe = 'pathCC' Chris@87: Chris@87: def __init__ (self, verbose=0, dry_run=0, force=0): Chris@87: UnixCCompiler.__init__ (self, verbose, dry_run, force) Chris@87: cc_compiler = self.cc_exe Chris@87: cxx_compiler = self.cxx_exe Chris@87: self.set_executables(compiler=cc_compiler, Chris@87: compiler_so=cc_compiler, Chris@87: compiler_cxx=cxx_compiler, Chris@87: linker_exe=cc_compiler, Chris@87: linker_so=cc_compiler + ' -shared')