本文整理汇总了Python中numpy.distutils.fcompiler.FCompiler类的典型用法代码示例。如果您正苦于以下问题:Python FCompiler类的具体用法?Python FCompiler怎么用?Python FCompiler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FCompiler类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: get_flags_fix
def get_flags_fix(self):
opt = FCompiler.get_flags_fix(self)
opt.extend(
["-YCFRL=1", "-YCOM_NAMES=LCS", "-YCOM_PFX", "-YEXT_PFX", "-YCOM_SFX=_", "-YEXT_SFX=_", "-YEXT_NAMES=LCS"]
)
opt.extend(["-f", "fixed"])
return opt
开发者ID:radical-software,项目名称:radicalspam,代码行数:7,代码来源:absoft.py
示例2: get_library_dirs
def get_library_dirs(self):
"""List of compiler library directories."""
opt = FCompiler.get_library_dirs(self)
flang_dir = dirname(self.executables['compiler_f77'][0])
opt.append(normpath(join(flang_dir, '..', 'lib')))
return opt
开发者ID:Horta,项目名称:numpy,代码行数:7,代码来源:pg.py
示例3: get_version
def get_version(self,*args,**kwds):
version = FCompiler.get_version(self,*args,**kwds)
if version is None and sys.platform.startswith('aix'):
# use lslpp to find out xlf version
lslpp = find_executable('lslpp')
xlf = find_executable('xlf')
if os.path.exists(xlf) and os.path.exists(lslpp):
s,o = exec_command(lslpp + ' -Lc xlfcmp')
m = re.search('xlfcmp:(?P<version>\d+([.]\d+)+)', o)
if m: version = m.group('version')
xlf_dir = '/etc/opt/ibmcmp/xlf'
if version is None and os.path.isdir(xlf_dir):
# linux:
# If the output of xlf does not contain version info
# (that's the case with xlf 8.1, for instance) then
# let's try another method:
l = os.listdir(xlf_dir)
l.sort()
l.reverse()
l = [d for d in l if os.path.isfile(os.path.join(xlf_dir,d,'xlf.cfg'))]
if l:
from distutils.version import LooseVersion
self.version = version = LooseVersion(l[0])
return version
开发者ID:glimmercn,项目名称:numpy,代码行数:26,代码来源:ibm.py
示例4: get_flags_f90
def get_flags_f90(self):
opt = FCompiler.get_flags_f90(self)
opt.extend(["-YCFRL=1","-YCOM_NAMES=LCS","-YCOM_PFX","-YEXT_PFX",
"-YCOM_SFX=_","-YEXT_SFX=_","-YEXT_NAMES=LCS"])
if self.get_version():
if self.get_version()>'4.6':
opt.extend(["-YDEALLOC=ALL"])
return opt
开发者ID:BlackEarth,项目名称:portable-python-win32,代码行数:8,代码来源:absoft.py
示例5: get_flags
def get_flags(self):
opt = FCompiler.get_flags(self)
if os.name != 'nt':
opt.extend(['-s'])
if self.get_version():
if self.get_version()>='8.2':
opt.append('-fpic')
return opt
开发者ID:BlackEarth,项目名称:portable-python-win32,代码行数:8,代码来源:absoft.py
示例6: get_flags
def get_flags(self):
opt = FCompiler.get_flags(self)
if os.name != "nt":
opt.extend(["-s"])
if self.get_version():
if self.get_version() >= "8.2":
opt.append("-fpic")
return opt
开发者ID:radical-software,项目名称:radicalspam,代码行数:8,代码来源:absoft.py
示例7: get_libraries
def get_libraries(self):
opt = FCompiler.get_libraries(self)
if self.get_version() >= '10.0':
opt.extend(['af90math', 'afio', 'af77math', 'U77'])
elif self.get_version() >= '8.0':
opt.extend(['f90math','fio','f77math','U77'])
else:
opt.extend(['fio','f90math','fmath','U77'])
if os.name =='nt':
opt.append('COMDLG32')
return opt
开发者ID:Ademan,项目名称:NumPy-GSoC,代码行数:11,代码来源:absoft.py
示例8: get_libraries
def get_libraries(self):
opt = FCompiler.get_libraries(self)
if self.get_version() >= "10.0":
opt.extend(["af90math", "afio", "af77math", "U77"])
elif self.get_version() >= "8.0":
opt.extend(["f90math", "fio", "f77math", "U77"])
else:
opt.extend(["fio", "f90math", "fmath", "U77"])
if os.name == "nt":
opt.append("COMDLG32")
return opt
开发者ID:radical-software,项目名称:radicalspam,代码行数:11,代码来源:absoft.py
示例9: get_flags_linker_so
def get_flags_linker_so(self):
opt = FCompiler.get_flags_linker_so(self)
v = self.get_version()
if v and v >= "8.0":
opt.append("-nofor_main")
if sys.platform == "darwin":
# Here, it's -dynamiclib
try:
idx = opt.index("-shared")
opt.remove("-shared")
except ValueError:
idx = 0
opt[idx:idx] = ["-dynamiclib", "-Wl,-undefined,dynamic_lookup", "-Wl,-framework,Python"]
return opt
开发者ID:sowhatwchen,项目名称:numpy,代码行数:14,代码来源:intel.py
示例10: get_library_dirs
def get_library_dirs(self):
opt = FCompiler.get_library_dirs(self)
d = os.environ.get('ABSOFT')
if d:
if self.get_version() >= '10.0':
# use shared libraries, the static libraries were not compiled -fPIC
prefix = 'sh'
else:
prefix = ''
if cpu.is_64bit():
suffix = '64'
else:
suffix = ''
opt.append(os.path.join(d, '%slib%s' % (prefix, suffix)))
return opt
开发者ID:BlackEarth,项目名称:portable-python-win32,代码行数:15,代码来源:absoft.py
示例11: get_library_dirs
def get_library_dirs(self):
opt = FCompiler.get_library_dirs(self)
d = os.environ.get("ABSOFT")
if d:
if self.get_version() >= "10.0":
# use shared libraries, the static libraries were not compiled -fPIC
prefix = "sh"
else:
prefix = ""
if cpu.is_64bit():
suffix = "64"
else:
suffix = ""
opt.append(os.path.join(d, "%slib%s" % (prefix, suffix)))
return opt
开发者ID:radical-software,项目名称:radicalspam,代码行数:15,代码来源:absoft.py
示例12: get_flags_f77
def get_flags_f77(self):
opt = FCompiler.get_flags_f77(self)
opt.extend(['-N22','-N90','-N110'])
v = self.get_version()
if os.name == 'nt':
if v and v>='8.0':
opt.extend(['-f','-N15'])
else:
opt.append('-f')
if v:
if v<='4.6':
opt.append('-B108')
else:
# Though -N15 is undocumented, it works with
# Absoft 8.0 on Linux
opt.append('-N15')
return opt
开发者ID:BlackEarth,项目名称:portable-python-win32,代码行数:17,代码来源:absoft.py
示例13: get_flags_f77
def get_flags_f77(self):
opt = FCompiler.get_flags_f77(self)
opt.extend(["-N22", "-N90", "-N110"])
v = self.get_version()
if os.name == "nt":
if v and v >= "8.0":
opt.extend(["-f", "-N15"])
else:
opt.append("-f")
if v:
if v <= "4.6":
opt.append("-B108")
else:
# Though -N15 is undocumented, it works with
# Absoft 8.0 on Linux
opt.append("-N15")
return opt
开发者ID:radical-software,项目名称:radicalspam,代码行数:17,代码来源:absoft.py
示例14: get_flags_linker_so
def get_flags_linker_so(self):
opt = FCompiler.get_flags_linker_so(self)
v = self.get_version()
if v and v >= '8.0':
opt.append('-nofor_main')
return opt
开发者ID:radical-software,项目名称:radicalspam,代码行数:6,代码来源:intel.py
示例15: get_libraries
def get_libraries(self):
opt = FCompiler.get_libraries(self)
opt.extend(['flang', 'flangrti', 'ompstub'])
return opt
开发者ID:Horta,项目名称:numpy,代码行数:4,代码来源:pg.py
示例16: get_version
def get_version(self, force=0, ok_status=[256,0,1]):
# XXX status==256 may indicate 'unrecognized option' or
# 'no input file'. So, version_cmd needs more work.
return FCompiler.get_version(self,force,ok_status)
开发者ID:8848,项目名称:Pymol-script-repo,代码行数:4,代码来源:hpux.py
注:本文中的numpy.distutils.fcompiler.FCompiler类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论