diff --git a/pyart/__check_build/setup.py b/pyart/__check_build/setup.py deleted file mode 100644 index c9a76db2b5..0000000000 --- a/pyart/__check_build/setup.py +++ /dev/null @@ -1,18 +0,0 @@ -# Author: Virgile Fritsch -# License: BSD 3 clause - -import numpy - - -def configuration(parent_package='', top_path=None): - from numpy.distutils.misc_util import Configuration - config = Configuration('__check_build', parent_package, top_path) - config.add_extension('_check_build', - sources=['_check_build.c'], - include_dirs=[numpy.get_include()]) - - return config - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(**configuration(top_path='').todict()) diff --git a/pyart/aux_io/setup.py b/pyart/aux_io/setup.py deleted file mode 100644 index 120ff5c80c..0000000000 --- a/pyart/aux_io/setup.py +++ /dev/null @@ -1,11 +0,0 @@ - -def configuration(parent_package='', top_path=None): - from numpy.distutils.misc_util import Configuration - config = Configuration('aux_io', parent_package, top_path) - #config.add_data_dir('tests') - return config - - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(**configuration(top_path='').todict()) diff --git a/pyart/bridge/setup.py b/pyart/bridge/setup.py deleted file mode 100644 index 0c7bc2166d..0000000000 --- a/pyart/bridge/setup.py +++ /dev/null @@ -1,12 +0,0 @@ - - -def configuration(parent_package='', top_path=None): - from numpy.distutils.misc_util import Configuration - config = Configuration('bridge', parent_package, top_path) - config.add_data_dir('tests') - return config - - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(**configuration(top_path='').todict()) diff --git a/pyart/core/setup.py b/pyart/core/setup.py deleted file mode 100644 index be4d0e3bc2..0000000000 --- a/pyart/core/setup.py +++ /dev/null @@ -1,11 +0,0 @@ - -def configuration(parent_package='', top_path=None): - from numpy.distutils.misc_util import Configuration - config = Configuration('core', parent_package, top_path) - config.add_data_dir('tests') - return config - - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(**configuration(top_path='').todict()) diff --git a/pyart/correct/setup.py b/pyart/correct/setup.py deleted file mode 100644 index f95f9a6730..0000000000 --- a/pyart/correct/setup.py +++ /dev/null @@ -1,73 +0,0 @@ -import os -import sys - -from numpy import get_include - - -def guess_rsl_path(): - return {'darwin': '/usr/local/trmm', - 'linux2': '/usr/local/trmm', - 'linux': '/usr/local/trmm', - 'win32': 'XXX'}[sys.platform] - - -def check_rsl_path(rsl_lib_path, rsl_include_path): - - ext = {'darwin': 'dylib', - 'linux2': 'so', - 'linux': 'so', - 'win32': 'DLL'}[sys.platform] - lib_file = os.path.join(rsl_lib_path, 'librsl.' + ext) - if os.path.isfile(lib_file) is False: - return False - - inc_file = os.path.join(rsl_include_path, 'rsl.h') - if os.path.isfile(inc_file) is False: - return False - return True - - -def configuration(parent_package='', top_path=None): - from numpy.distutils.misc_util import Configuration - config = Configuration('correct', parent_package, top_path) - config.add_data_dir('tests') - - # determine and verify the RSL library and include location - rsl_path = os.environ.get('RSL_PATH') - if rsl_path is None: - rsl_path = guess_rsl_path() - rsl_lib_path = os.path.join(rsl_path, 'lib') - rsl_include_path = os.path.join(rsl_path, 'include') - - # build the FourDD dealiaser if RSL is installed - if check_rsl_path(rsl_lib_path, rsl_include_path): - fourdd_sources = ['src/dealias_fourdd.c', 'src/sounding_to_volume.c', - 'src/helpers.c'] - # Cython wrapper around FourDD - config.add_extension( - '_fourdd_interface', - sources=['_fourdd_interface.c'] + fourdd_sources, - libraries=['rsl'], - library_dirs=[rsl_lib_path], - include_dirs=[rsl_include_path, 'src'] + [get_include()], - runtime_library_dirs=[rsl_lib_path]) - - # phase unwrap extensions - config.add_extension('_unwrap_1d', sources=['_unwrap_1d.c'], - include_dirs=[get_include()]) - unwrap_sources_2d = ['_unwrap_2d.c', 'unwrap_2d_ljmu.c'] - config.add_extension('_unwrap_2d', sources=unwrap_sources_2d, - include_dirs=[get_include()]) - unwrap_sources_3d = ['_unwrap_3d.c', 'unwrap_3d_ljmu.c'] - config.add_extension('_unwrap_3d', sources=unwrap_sources_3d, - include_dirs=[get_include()]) - - # _fast_edge_finder extension - config.add_extension('_fast_edge_finder', sources=['_fast_edge_finder.c'], - include_dirs=[get_include()]) - return config - - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(**configuration(top_path='').todict()) diff --git a/pyart/filters/setup.py b/pyart/filters/setup.py deleted file mode 100644 index 85efc3974c..0000000000 --- a/pyart/filters/setup.py +++ /dev/null @@ -1,12 +0,0 @@ - - -def configuration(parent_package='', top_path=None): - from numpy.distutils.misc_util import Configuration - config = Configuration('filters', parent_package, top_path) - config.add_data_dir('tests') - return config - - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(**configuration(top_path='').todict()) diff --git a/pyart/graph/setup.py b/pyart/graph/setup.py deleted file mode 100644 index a0ec5dce4e..0000000000 --- a/pyart/graph/setup.py +++ /dev/null @@ -1,13 +0,0 @@ - - -def configuration(parent_package='', top_path=None): - from numpy.distutils.misc_util import Configuration - config = Configuration('graph', parent_package, top_path) - config.add_data_dir('tests') - config.add_data_files('balance-rgb.txt') - return config - - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(**configuration(top_path='').todict()) diff --git a/pyart/io/setup.py b/pyart/io/setup.py deleted file mode 100644 index 05893268b4..0000000000 --- a/pyart/io/setup.py +++ /dev/null @@ -1,88 +0,0 @@ - -import os -import sys - -from numpy import get_include - -RSL_MISSING_WARNING = """ -============================================================================== -WARNING: RSL LIBS AND HEADERS COULD NOT BE FOUND AT THE PROVIDED LOCATION. - -Py-ART will be build without bindings to the NASA TRMM RSL library but some -functionality will not be available. If this functionality is desired please -rebuild and reinstall Py-ART after verifying: - - 1. The NASA TRMM RSL library is installed and accessable. This package - can be obtained from: - http://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/. - - 2. The RSL_PATH environmental variable points to where RSL is installed - (the libs in $RSL_PATH/lib, the headers in $RSL_PATH/include). - Currently the RSL_PATH variable is set to: %s - -============================================================================== -""" - - -def guess_rsl_path(): - return {'darwin': '/usr/local/trmm', - 'linux2': '/usr/local/trmm', - 'linux': '/usr/local/trmm', - 'win32': 'XXX'}[sys.platform] - - -def check_rsl_path(rsl_lib_path, rsl_include_path): - """ check if the rsl path is valid, return False if invalid. """ - ext = {'darwin': 'dylib', - 'linux2': 'so', - 'linux': 'so', - 'win32': 'DLL'}[sys.platform] - lib_file = os.path.join(rsl_lib_path, 'librsl.' + ext) - if os.path.isfile(lib_file) is False: - return False - - inc_file = os.path.join(rsl_include_path, 'rsl.h') - if os.path.isfile(inc_file) is False: - return False - return True - - -def configuration(parent_package='', top_path=None): - from numpy.distutils.misc_util import Configuration - from numpy.distutils.system_info import get_info, BlasNotFoundError - config = Configuration('io', parent_package, top_path) - config.add_data_dir('tests') - - # determine and verify the at RSL location - rsl_path = os.environ.get('RSL_PATH') - if rsl_path is None: - rsl_path = guess_rsl_path() - rsl_lib_path = os.path.join(rsl_path, 'lib') - rsl_include_path = os.path.join(rsl_path, 'include') - - # build the RSL interface if RSL is installed - if check_rsl_path(rsl_lib_path, rsl_include_path): - config.add_extension( - '_rsl_interface', - sources=['_rsl_interface.c'], - libraries=['rsl'], - library_dirs=[rsl_lib_path], - include_dirs=[rsl_include_path] + [get_include()], - runtime_library_dirs=[rsl_lib_path]) - else: - import warnings - warnings.warn(RSL_MISSING_WARNING % (rsl_path)) - - config.add_extension('_sigmetfile', - sources=['_sigmetfile.c'], - include_dirs=[get_include()]) - - config.add_extension('nexrad_interpolate', - sources=['nexrad_interpolate.c'], - include_dirs=[get_include()]) - - return config - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(**configuration(top_path='').todict()) diff --git a/pyart/map/setup.py b/pyart/map/setup.py deleted file mode 100644 index f225e44066..0000000000 --- a/pyart/map/setup.py +++ /dev/null @@ -1,33 +0,0 @@ -import os -from os.path import join -import warnings -import numpy - - -def configuration(parent_package='', top_path=None): - from numpy.distutils.misc_util import Configuration - from numpy.distutils.system_info import get_info, BlasNotFoundError - config = Configuration('map', parent_package, top_path) - config.add_data_dir('tests') - libraries = [] - if os.name == 'posix': - libraries.append('m') - - config.add_extension('ckdtree', - sources=['ckdtree.c'], - include_dirs=[numpy.get_include()], - libraries=libraries) - - config.add_extension('_load_nn_field_data', - sources=['_load_nn_field_data.c'], - include_dirs=[numpy.get_include()]) - - config.add_extension('_gate_to_grid_map', - sources=['_gate_to_grid_map.c'], - libraries=libraries) - - return config - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(**configuration(top_path='').todict()) diff --git a/pyart/retrieve/setup.py b/pyart/retrieve/setup.py deleted file mode 100644 index 7bcfe056a5..0000000000 --- a/pyart/retrieve/setup.py +++ /dev/null @@ -1,13 +0,0 @@ -def configuration(parent_package='', top_path=None): - global config - from numpy.distutils.misc_util import Configuration - config = Configuration('retrieve', parent_package, top_path) - config.add_data_dir('tests') - - # KDP processing Cython extension - config.add_extension('_kdp_proc', sources=['_kdp_proc.c']) - return config - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(**configuration(top_path='').todict()) diff --git a/pyart/testing/setup.py b/pyart/testing/setup.py deleted file mode 100644 index d3297b66c0..0000000000 --- a/pyart/testing/setup.py +++ /dev/null @@ -1,12 +0,0 @@ - - -def configuration(parent_package='', top_path=None): - from numpy.distutils.misc_util import Configuration - config = Configuration('testing', parent_package, top_path) - config.add_data_dir('data') - return config - - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(**configuration(top_path='').todict()) diff --git a/pyart/util/setup.py b/pyart/util/setup.py deleted file mode 100644 index b4a2b31657..0000000000 --- a/pyart/util/setup.py +++ /dev/null @@ -1,12 +0,0 @@ - - -def configuration(parent_package='', top_path=None): - from numpy.distutils.misc_util import Configuration - config = Configuration('util', parent_package, top_path) - config.add_data_dir('tests') - return config - - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(**configuration(top_path='').todict())