Пример #1
0
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
Пример #2
0
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
Пример #3
0
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
Пример #4
0
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