From 8d0b5817a3fd4f3ce465aba2fd0ddd30677b8e60 Mon Sep 17 00:00:00 2001 From: rgommers Date: Tue, 30 Nov 2010 22:14:37 +0800 Subject: ENH: add support for the PathScale compilers on Linux. Closes #1043. Thanks to R. Perez. --- numpy/distutils/pathccompiler.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 numpy/distutils/pathccompiler.py (limited to 'numpy/distutils/pathccompiler.py') diff --git a/numpy/distutils/pathccompiler.py b/numpy/distutils/pathccompiler.py new file mode 100644 index 000000000..48051810e --- /dev/null +++ b/numpy/distutils/pathccompiler.py @@ -0,0 +1,21 @@ +from distutils.unixccompiler import UnixCCompiler + +class PathScaleCCompiler(UnixCCompiler): + + """ + PathScale compiler compatible with an gcc built Python. + """ + + compiler_type = 'pathcc' + cc_exe = 'pathcc' + cxx_exe = 'pathCC' + + def __init__ (self, verbose=0, dry_run=0, force=0): + UnixCCompiler.__init__ (self, verbose, dry_run, force) + cc_compiler = self.cc_exe + cxx_compiler = self.cxx_exe + self.set_executables(compiler=cc_compiler, + compiler_so=cc_compiler, + compiler_cxx=cxx_compiler, + linker_exe=cc_compiler, + linker_so=cc_compiler + ' -shared') -- cgit v1.2.1