-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
62 lines (52 loc) · 2.18 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env python
req = ['nose','numpy','pathlib2',
'timeutil']
# %%
from setuptools import find_packages
from numpy.distutils.core import Extension, setup
from glob import glob
from os.path import join
name = 'pyiri2016'
sourcePath = 'source'
f77CompileArgs = ['-w']
iriSource1 = ['iriwebg.for', 'irisub.for', 'irifun.for',
'iritec.for', 'iridreg.for', 'igrf.for', 'cira.for', 'iriflip.for']
sources1 = [join(sourcePath, s) for s in iriSource1]
ext1 = Extension(name='iriweb', sources=sources1,
f2py_options=['--quiet','skip:','dfridr',':'],
extra_f77_compile_args=f77CompileArgs)
ccirData = glob(join(join('data', 'ccir'), '*.asc'))
igrfData = glob(join(join('data', 'igrf'), '*.dat'))
indexData = glob(join(join('data', 'index'), '*.dat'))
mcsatData = glob(join(join('data', 'mcsat'), '*.dat'))
ursiData = glob(join(join('data', 'ursi'), '*.asc'))
iriDataFiles = [(join(name, join('data', 'ccir')), ccirData),
(join(name, join('data', 'igrf')), igrfData),
(join(name, join('data', 'index')), indexData),
(join(name, join('data', 'mcsat')), mcsatData),
(join(name, join('data', 'ursi')), ursiData)
]
if __name__ == '__main__':
setup(name=name,
packages=find_packages(),
version='1.2.2',
author=['Ronald Ilma','Michael Hirsch, Ph.D.'],
url = 'https://github.com/rilma/pyIRI2016',
description='IRI2016 International Reference Ionosphere via Python',
classifiers=[
'Intended Audience :: Science/Research',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Topic :: Scientific/Engineering :: Atmospheric Science',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
ext_package=name,
ext_modules=[ ext1 ],
data_files=iriDataFiles,
install_requires=req,
extras_requires={'plot':['matplotlib','seaborn','scipy',],},
dependency_links=[
'https://github.com/rilma/TimeUtilities/zipball/master#egg=timeutil-999.0'],
python_requires='>=2.7',
)