Newer
Older
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
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import numpy
sourcefiles = ['src/get_Reynolds_SST.c', # SST
'src/bilinearInterpSST.c', # _|
'src/swap_bytes.c', # _|
'src/get_NDVI_background.c', # NDVI
'src/get_Olson_eco.c', # Olson eco type
'src/getcoord.c', # _|
'src/get_GEOS.c', # GEOS
'src/get_geos_times.c', # _|
'src/get_granule_times.c', # _|
'src/get_ti_vars.c', # _|
'src/get_ti_weights.c', # _|
'src/read_GEOS.c', # _|
'src/read_GEOS_constants.c', # _|
'src/read_GEOS_lndocn.c', # _|
'src/assign_geos_vals.c', # _|
'ancillary.pyx',
]
include_dirs = ['include',
'/opt/hdfeos2/2.20-gcc-8.3/include',
'/opt/netcdf4/4.7.0-gcc-8.3/include',
numpy.get_include(), ]
library_dirs = ['/opt/hdfeos2/2.20-gcc-8.3/lib',
'/opt/netcdf4/4.7.0fcc-8.3/lib']
extensions = [Extension('ancillary_data', sourcefiles,
include_dirs=include_dirs,
library_dirs=library_dirs,
libraries=['netcdf']), ]
setup(ext_modules=cythonize(extensions,
compiler_directives={'language_level': '3'}, ), )