Bill Ladwig 6 years ago
parent
commit
a96dbd353d
  1. 9
      chey_intel.py
  2. 4
      setup.py

9
chey_intel.py

@ -13,7 +13,8 @@ compilers = ['IntelFCompiler', 'IntelVisualFCompiler',
def intel_version_match(type): def intel_version_match(type):
# Match against the important stuff in the version string # Match against the important stuff in the version string
return simple_version_match(start=r'Intel.*?Fortran.*?(?:%s).*?Version' % (type,)) return simple_version_match(
start=r'Intel.*?Fortran.*?(?:%s).*?Version'.format(type,))
class BaseIntelFCompiler(FCompiler): class BaseIntelFCompiler(FCompiler):
@ -104,7 +105,8 @@ class IntelEM64TFCompiler(IntelFCompiler):
compiler_aliases = () compiler_aliases = ()
description = 'Intel Fortran Compiler for 64-bit apps' description = 'Intel Fortran Compiler for 64-bit apps'
version_match = intel_version_match('EM64T-based|Intel\\(R\\) 64|64|IA-64|64-bit') version_match = intel_version_match(
'EM64T-based|Intel\\(R\\) 64|64|IA-64|64-bit')
possible_executables = ['ifort', 'efort', 'efc'] possible_executables = ['ifort', 'efort', 'efc']
@ -163,7 +165,8 @@ class IntelVisualFCompiler(BaseIntelFCompiler):
module_include_switch = '/I' module_include_switch = '/I'
def get_flags(self): def get_flags(self):
opt = ['/nologo', '/MD', '/nbs', '/names:lowercase', '/assume:underscore'] opt = ['/nologo', '/MD', '/nbs', '/names:lowercase',
'/assume:underscore']
return opt return opt
def get_flags_free(self): def get_flags_free(self):

4
setup.py

@ -77,8 +77,8 @@ numpy.distutils.core.setup(
author="Bill Ladwig", author="Bill Ladwig",
author_email="ladwig@ucar.edu", author_email="ladwig@ucar.edu",
description="Diagnostic and interpolation routines for WRF-ARW data.", description="Diagnostic and interpolation routines for WRF-ARW data.",
long_description = ("A collection of diagnostic and interpolation routines " long_description=("A collection of diagnostic and interpolation "
"to be used with WRF-ARW data.\n\n" "routines to be used with WRF-ARW data.\n\n"
"GitHub Repository:\n\n" "GitHub Repository:\n\n"
"https://github.com/NCAR/wrf-python\n\n" "https://github.com/NCAR/wrf-python\n\n"
"Documentation:\n\n" "Documentation:\n\n"

Loading…
Cancel
Save