def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs config = Configuration('cows', parent_package, top_path) cython(['_skeletonize_3d_cy.pyx.in'], working_path=base_path) config.add_extension('_skeletonize_3d_cy', sources=['_skeletonize_3d_cy.cpp'], include_dirs=[get_numpy_include_dirs()], language='c++') cython(['filament.pyx'], working_path=base_path) config.add_extension('filament', sources=['filament.c'], include_dirs=[get_numpy_include_dirs()]) return config
def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import (Configuration, get_numpy_include_dirs) config = Configuration('kalmanf', parent_package, top_path) # This function tries to create C files from the given .pyx files. If # it fails, we build the checked-in .c files. if has_c_compiler(): cython(['kalman_loglike.pyx'], working_path=cur_dir) config.add_extension('kalman_loglike', sources=['kalman_loglike.c'], include_dirs=[get_numpy_include_dirs()]) return config
def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import (Configuration, get_numpy_include_dirs) config = Configuration('nonparametric', parent_package, top_path) #config.add_subpackage('tests') #config.add_subpackage('tests/results') config.add_data_dir('tests') config.add_data_dir('tests/results') config.add_data_files('tests/results/*.csv') #config.add_data_files('tests/Xi_test_data.csv') #config.add_data_files('tests/results/results_kde.csv') #config.add_data_files('tests/results/results_kde_fft.csv') #config.add_data_files('tests/results/results_kde_weights.csv') if has_c_compiler(): cython(['fast_linbin.pyx'], working_path=cur_dir) config.add_extension('fast_linbin', sources=['fast_linbin.c'], include_dirs=[get_numpy_include_dirs()]) return config