Current Path: > > opt > cloudlinux > venv > lib > > python3.11 > site-packages > numpy > distutils > fcompiler
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
__init__.py | File | 40625 bytes | April 17 2025 13:10:58. | |
absoft.py | File | 5516 bytes | April 17 2025 13:10:58. | |
arm.py | File | 2090 bytes | April 17 2025 13:10:58. | |
compaq.py | File | 3903 bytes | April 17 2025 13:10:58. | |
environment.py | File | 3080 bytes | April 17 2025 13:10:58. | |
fujitsu.py | File | 1333 bytes | April 17 2025 13:10:58. | |
g95.py | File | 1330 bytes | April 17 2025 13:10:58. | |
gnu.py | File | 20502 bytes | April 17 2025 13:10:58. | |
hpux.py | File | 1353 bytes | April 17 2025 13:10:58. | |
ibm.py | File | 3534 bytes | April 17 2025 13:10:58. | |
intel.py | File | 6570 bytes | April 17 2025 13:10:58. | |
lahey.py | File | 1327 bytes | April 17 2025 13:10:58. | |
mips.py | File | 1714 bytes | April 17 2025 13:10:58. | |
nag.py | File | 2777 bytes | April 17 2025 13:10:58. | |
none.py | File | 758 bytes | April 17 2025 13:10:58. | |
nv.py | File | 1560 bytes | April 17 2025 13:10:58. | |
pathf95.py | File | 1061 bytes | April 17 2025 13:10:58. | |
pg.py | File | 3568 bytes | April 17 2025 13:10:58. | |
sun.py | File | 1577 bytes | April 17 2025 13:10:58. | |
vast.py | File | 1667 bytes | April 17 2025 13:10:58. |
import sys import re from numpy.distutils.fcompiler import FCompiler compilers = ['NAGFCompiler', 'NAGFORCompiler'] class BaseNAGFCompiler(FCompiler): version_pattern = r'NAG.* Release (?P<version>[^(\s]*)' def version_match(self, version_string): m = re.search(self.version_pattern, version_string) if m: return m.group('version') else: return None def get_flags_linker_so(self): return ["-Wl,-shared"] def get_flags_opt(self): return ['-O4'] def get_flags_arch(self): return [] class NAGFCompiler(BaseNAGFCompiler): compiler_type = 'nag' description = 'NAGWare Fortran 95 Compiler' executables = { 'version_cmd' : ["<F90>", "-V"], 'compiler_f77' : ["f95", "-fixed"], 'compiler_fix' : ["f95", "-fixed"], 'compiler_f90' : ["f95"], 'linker_so' : ["<F90>"], 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"] } def get_flags_linker_so(self): if sys.platform == 'darwin': return ['-unsharedf95', '-Wl,-bundle,-flat_namespace,-undefined,suppress'] return BaseNAGFCompiler.get_flags_linker_so(self) def get_flags_arch(self): version = self.get_version() if version and version < '5.1': return ['-target=native'] else: return BaseNAGFCompiler.get_flags_arch(self) def get_flags_debug(self): return ['-g', '-gline', '-g90', '-nan', '-C'] class NAGFORCompiler(BaseNAGFCompiler): compiler_type = 'nagfor' description = 'NAG Fortran Compiler' executables = { 'version_cmd' : ["nagfor", "-V"], 'compiler_f77' : ["nagfor", "-fixed"], 'compiler_fix' : ["nagfor", "-fixed"], 'compiler_f90' : ["nagfor"], 'linker_so' : ["nagfor"], 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"] } def get_flags_linker_so(self): if sys.platform == 'darwin': return ['-unsharedrts', '-Wl,-bundle,-flat_namespace,-undefined,suppress'] return BaseNAGFCompiler.get_flags_linker_so(self) def get_flags_debug(self): version = self.get_version() if version and version > '6.1': return ['-g', '-u', '-nan', '-C=all', '-thread_safe', '-kind=unique', '-Warn=allocation', '-Warn=subnormal'] else: return ['-g', '-nan', '-C=all', '-u', '-thread_safe'] if __name__ == '__main__': from distutils import log log.set_verbosity(2) from numpy.distutils import customized_fcompiler compiler = customized_fcompiler(compiler='nagfor') print(compiler.get_version()) print(compiler.get_flags_debug())
SILENT KILLER Tool