diff options
author | rgommers <ralf.gommers@googlemail.com> | 2010-11-30 22:14:37 +0800 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-12-02 08:40:41 -0700 |
commit | 8d0b5817a3fd4f3ce465aba2fd0ddd30677b8e60 (patch) | |
tree | c8a4e3748dd22bef40c10e4770654023a65b2a07 /numpy/distutils/pathccompiler.py | |
parent | a70de5c870aa9406ddd84fd98e3d32d4c006d18e (diff) | |
download | numpy-8d0b5817a3fd4f3ce465aba2fd0ddd30677b8e60.tar.gz |
ENH: add support for the PathScale compilers on Linux. Closes #1043.
Thanks to R. Perez.
Diffstat (limited to 'numpy/distutils/pathccompiler.py')
-rw-r--r-- | numpy/distutils/pathccompiler.py | 21 |
1 files changed, 21 insertions, 0 deletions
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') |