-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
executable file
·86 lines (82 loc) · 2.38 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python3
from setuptools import setup, find_packages, Extension
from setuptools.command.build_py import build_py
import os
import os.path
import subprocess
try:
import numpy as np
numpy_include_dirs = [np.get_include()]
except ModuleNotFoundError:
numpy_include_dirs = []
class BuildCOSP(build_py):
def run(self):
subprocess.run('make', cwd='cosp', check=True)
subprocess.run('make', check=True)
build_py.run(self)
setup(
name='alcf',
version='2.2.0',
description='Automatic Lidar and Ceilometer Framework (ALCF)',
author='Peter Kuma, Adrian J. McDonald, Olaf Morgenstern, Richard Querel, Israel Silber, Connor J. Flynn',
author_email='[email protected]',
license='MIT',
entry_points={
'console_scripts': 'alcf = alcf.bin.alcf:main_wrapper',
},
packages=find_packages(),
ext_modules=[
Extension(
'alcf.algorithms.interp.area_block',
['alcf/algorithms/interp/area_block.pyx'],
include_dirs = numpy_include_dirs,
),
Extension(
'alcf.algorithms.interp.area_linear',
['alcf/algorithms/interp/area_linear.pyx'],
include_dirs = numpy_include_dirs,
),
],
zip_safe=False,
package_data={'alcf': ['cosp_alcf'] + \
[os.path.join('fonts', x) for x in os.listdir('alcf/fonts')]},
data_files=[('share/man/man1',
[os.path.join('man', x) for x in os.listdir('man')])],
setup_requires=[
'cython',
'numpy',
],
install_requires=[
'numpy>=1.24.2,<2.0.0',
'scipy>=1.10.1',
'matplotlib>=3.7.2',
'netCDF4>=1.6.4',
'cl2nc>=3.4.0',
'mpl2nc>=1.3.6',
'aquarius-time>=0.4.0',
'ds-format>=4.1.0',
'pst-format>=2.0.0',
'astropy>=5.3.2',
'cftime>=1.6.2',
'requests>=2.31.0',
'cdsapi>=0.7.0',
],
keywords=['alc', 'ceilometer', 'lidar', 'atmosphere', 'model', 'simulator', 'nwp', 'gcm', 'cosp', 'actsim', 'vaisala', 'cl51', 'cl31', 'lufft', 'chm-15k', 'minimpl', 'amps', 'merra-2', 'um'],
url='https://alcf.peterkuma.net',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Programming Language :: Python :: 3',
'Programming Language :: Cython',
'Programming Language :: Fortran',
'Topic :: Scientific/Engineering :: Atmospheric Science',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Visualization',
],
cmdclass={
'build_py': BuildCOSP,
}
)