summaryrefslogtreecommitdiff
path: root/scipy_distutils/pgfcompiler.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-09-14 18:55:03 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-09-14 18:55:03 +0000
commit951cdad1a9b0a15b673bf56aecc1fef5066061f3 (patch)
treef307f0f2ebf404526fcc671958e8ea836b53baf9 /scipy_distutils/pgfcompiler.py
parentc261078e9c2d8fd958bf8b3758cdd07add5fc2e3 (diff)
downloadnumpy-951cdad1a9b0a15b673bf56aecc1fef5066061f3.tar.gz
renamed directories
Diffstat (limited to 'scipy_distutils/pgfcompiler.py')
-rw-r--r--scipy_distutils/pgfcompiler.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/scipy_distutils/pgfcompiler.py b/scipy_distutils/pgfcompiler.py
deleted file mode 100644
index 2555b17e6..000000000
--- a/scipy_distutils/pgfcompiler.py
+++ /dev/null
@@ -1,42 +0,0 @@
-
-# http://www.pgroup.com
-
-import os
-import sys
-
-from cpuinfo import cpu
-from fcompiler import FCompiler
-
-class PGroupFCompiler(FCompiler):
-
- compiler_type = 'pg'
- version_pattern = r'\s*pg(f77|f90|hpf) (?P<version>[\d.-]+).*'
-
- executables = {
- 'version_cmd' : ["pgf77", "-V 2>/dev/null"],
- 'compiler_f77' : ["pgf77"],
- 'compiler_fix' : ["pgf90", "-Mfixed"],
- 'compiler_f90' : ["pgf90"],
- 'linker_so' : ["pgf90","-shared","-fpic"],
- 'archiver' : ["ar", "-cr"],
- 'ranlib' : ["ranlib"]
- }
- pic_flags = ['-fpic']
- module_dir_switch = '-module '
- module_include_switch = '-I'
-
- def get_flags(self):
- opt = ['-Minform=inform','-Mnosecond_underscore']
- return self.pic_flags + opt
- def get_flags_opt(self):
- return ['-fast']
- def get_flags_debug(self):
- return ['-g']
-
-if __name__ == '__main__':
- from distutils import log
- log.set_verbosity(2)
- from fcompiler import new_fcompiler
- compiler = new_fcompiler(compiler='pg')
- compiler.customize()
- print compiler.get_version()