|
17 | 17 | import chey_intel
|
18 | 18 | import numpy.distutils.core
|
19 | 19 | import numpy.distutils.fcompiler.intel
|
20 |
| - |
| 20 | + |
21 | 21 | numpy.distutils.fcompiler.intel.IntelFCompiler = chey_intel.IntelFCompiler
|
22 | 22 | numpy.distutils.fcompiler.intel.IntelVisualFCompiler = (
|
23 | 23 | chey_intel.IntelVisualFCompiler)
|
|
31 | 31 | chey_intel.IntelEM64TFCompiler)
|
32 | 32 |
|
33 | 33 | ext1 = numpy.distutils.core.Extension(
|
34 |
| - name = "wrf._wrffortran", |
35 |
| - sources = ["fortran/wrf_constants.f90", |
36 |
| - "fortran/wrf_testfunc.f90", |
37 |
| - "fortran/wrf_user.f90", |
38 |
| - "fortran/rip_cape.f90", |
39 |
| - "fortran/wrf_cloud_fracf.f90", |
40 |
| - "fortran/wrf_fctt.f90", |
41 |
| - "fortran/wrf_user_dbz.f90", |
42 |
| - "fortran/wrf_relhl.f90", |
43 |
| - "fortran/calc_uh.f90", |
44 |
| - "fortran/wrf_user_latlon_routines.f90", |
45 |
| - "fortran/wrf_pvo.f90", |
46 |
| - "fortran/eqthecalc.f90", |
47 |
| - "fortran/wrf_rip_phys_routines.f90", |
48 |
| - "fortran/wrf_pw.f90", |
49 |
| - "fortran/wrf_vinterp.f90", |
50 |
| - "fortran/wrf_wind.f90", |
51 |
| - "fortran/omp.f90"] |
| 34 | + name="wrf._wrffortran", |
| 35 | + sources=["fortran/wrf_constants.f90", |
| 36 | + "fortran/wrf_testfunc.f90", |
| 37 | + "fortran/wrf_user.f90", |
| 38 | + "fortran/rip_cape.f90", |
| 39 | + "fortran/wrf_cloud_fracf.f90", |
| 40 | + "fortran/wrf_fctt.f90", |
| 41 | + "fortran/wrf_user_dbz.f90", |
| 42 | + "fortran/wrf_relhl.f90", |
| 43 | + "fortran/calc_uh.f90", |
| 44 | + "fortran/wrf_user_latlon_routines.f90", |
| 45 | + "fortran/wrf_pvo.f90", |
| 46 | + "fortran/eqthecalc.f90", |
| 47 | + "fortran/wrf_rip_phys_routines.f90", |
| 48 | + "fortran/wrf_pw.f90", |
| 49 | + "fortran/wrf_vinterp.f90", |
| 50 | + "fortran/wrf_wind.f90", |
| 51 | + "fortran/omp.f90"] |
52 | 52 | )
|
53 | 53 |
|
54 |
| -with open("src/wrf/version.py") as f: |
| 54 | +with open("src/wrf/version.py") as f: |
55 | 55 | exec(f.read())
|
56 | 56 |
|
57 | 57 | on_rtd = os.environ.get("READTHEDOCS", None) == "True"
|
58 |
| -#on_rtd=True |
| 58 | +# on_rtd=True |
59 | 59 | if on_rtd:
|
60 |
| - if sys.version_info < (3,3): |
| 60 | + if sys.version_info < (3, 3): |
61 | 61 | requirements = ["mock"] # for python2 and python < 3.3
|
62 | 62 | else:
|
63 | 63 | requirements = [] # for >= python3.3
|
|
67 | 67 | # Place install_requires into the text file "requirements.txt"
|
68 | 68 | with open("requirements.txt") as f2:
|
69 | 69 | requirements = f2.read().strip().splitlines()
|
70 |
| - |
71 |
| - #if sys.version_info < (3,3): |
72 |
| - # requirements.append("mock") |
| 70 | + |
| 71 | + # if sys.version_info < (3,3): |
| 72 | + # requirements.append("mock") |
73 | 73 | ext_modules = [ext1]
|
74 | 74 |
|
75 | 75 |
|
76 |
| -numpy.distutils.core.setup( |
77 |
| - author = "Bill Ladwig", |
78 |
| - author_email = "[email protected]", |
79 |
| - description = "Diagnostic and interpolation routines for WRF-ARW data.", |
80 |
| - long_description = ("A collection of diagnostic and interpolation routines " |
81 |
| - "to be used with WRF-ARW data.\n\n" |
82 |
| - "GitHub Repository:\n\n" |
83 |
| - "https://github.com/NCAR/wrf-python\n\n" |
84 |
| - "Documentation:\n\n" |
85 |
| - "http://wrf-python.rtfd.org\n"), |
86 |
| - url = "https://github.com/NCAR/wrf-python", |
87 |
| - keywords = ["python", "wrf-python", "wrf", "forecast", "model", |
88 |
| - "weather research and forecasting", "interpolation", |
89 |
| - "plotting", "plots", "meteorology", "nwp", |
90 |
| - "numerical weather prediction", "diagnostic", |
91 |
| - "science", "numpy"], |
92 |
| - install_requires = requirements, |
93 |
| - classifiers = ["Development Status :: 5 - Production/Stable", |
94 |
| - "Intended Audience :: Science/Research", |
95 |
| - "Intended Audience :: Developers", |
96 |
| - "License :: OSI Approved :: Apache Software License", |
97 |
| - "Programming Language :: Fortran", |
98 |
| - "Programming Language :: Python :: 2.7", |
99 |
| - "Programming Language :: Python :: 3.4", |
100 |
| - "Programming Language :: Python :: 3.5", |
101 |
| - "Programming Language :: Python :: 3.6", |
102 |
| - "Programming Language :: Python :: 3.7", |
103 |
| - "Topic :: Scientific/Engineering :: Atmospheric Science", |
104 |
| - "Topic :: Software Development", |
105 |
| - "Operating System :: POSIX", |
106 |
| - "Operating System :: Unix", |
107 |
| - "Operating System :: MacOS", |
108 |
| - "Operating System :: Microsoft :: Windows"], |
109 |
| - name = "wrf-python", |
110 |
| - platforms = ["any"], |
111 |
| - license = "Apache License 2.0", |
112 |
| - version = __version__, |
113 |
| - packages = setuptools.find_packages("src"), |
114 |
| - ext_modules = ext_modules, |
115 |
| - package_dir = {"" : "src"}, |
116 |
| - download_url = "http://python.org/pypi/wrf-python", |
117 |
| - package_data={"wrf" : ["data/psadilookup.dat"]}, |
| 76 | +numpy.distutils.core.setup( |
| 77 | + author="Bill Ladwig", |
| 78 | + |
| 79 | + description="Diagnostic and interpolation routines for WRF-ARW data.", |
| 80 | + long_description=("A collection of diagnostic and interpolation " |
| 81 | + "routines to be used with WRF-ARW data.\n\n" |
| 82 | + "GitHub Repository:\n\n" |
| 83 | + "https://github.com/NCAR/wrf-python\n\n" |
| 84 | + "Documentation:\n\n" |
| 85 | + "http://wrf-python.rtfd.org\n"), |
| 86 | + url="https://github.com/NCAR/wrf-python", |
| 87 | + keywords=["python", "wrf-python", "wrf", "forecast", "model", |
| 88 | + "weather research and forecasting", "interpolation", |
| 89 | + "plotting", "plots", "meteorology", "nwp", |
| 90 | + "numerical weather prediction", "diagnostic", |
| 91 | + "science", "numpy"], |
| 92 | + install_requires=requirements, |
| 93 | + classifiers=["Development Status :: 5 - Production/Stable", |
| 94 | + "Intended Audience :: Science/Research", |
| 95 | + "Intended Audience :: Developers", |
| 96 | + "License :: OSI Approved :: Apache Software License", |
| 97 | + "Programming Language :: Fortran", |
| 98 | + "Programming Language :: Python :: 2.7", |
| 99 | + "Programming Language :: Python :: 3.4", |
| 100 | + "Programming Language :: Python :: 3.5", |
| 101 | + "Programming Language :: Python :: 3.6", |
| 102 | + "Programming Language :: Python :: 3.7", |
| 103 | + "Topic :: Scientific/Engineering :: Atmospheric Science", |
| 104 | + "Topic :: Software Development", |
| 105 | + "Operating System :: POSIX", |
| 106 | + "Operating System :: Unix", |
| 107 | + "Operating System :: MacOS", |
| 108 | + "Operating System :: Microsoft :: Windows"], |
| 109 | + name="wrf-python", |
| 110 | + platforms=["any"], |
| 111 | + license="Apache License 2.0", |
| 112 | + version=__version__, |
| 113 | + packages=setuptools.find_packages("src"), |
| 114 | + ext_modules=ext_modules, |
| 115 | + package_dir={"": "src"}, |
| 116 | + download_url="http://python.org/pypi/wrf-python", |
| 117 | + package_data={"wrf": ["data/psadilookup.dat"]}, |
118 | 118 | scripts=[]
|
119 |
| -) |
| 119 | +) |
0 commit comments