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', # _| 'src/cithr.c', # Not sure 'src/check_reg_uniformity.c', # reg. uniformity for restoral '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'}, ), )