Ejemplo n.º 1
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs

    config = Configuration('filter', parent_package, top_path)
    config.add_data_dir('tests')

    # This function tries to create C files from the given .pyx files.  If
    # it fails, try to build with pre-generated .c files.
    cython(['median.pyx'], working_path=base_path)
    cython(['tvdenoise.pyx'], working_path=base_path)
    cython(['shock.pyx'], working_path=base_path)
    cython(['nlmeans.pyx'], working_path=base_path)
    cython(['perdecomp.pyx'], working_path=base_path)

    config.add_extension('median', sources=['median.c'],
                         include_dirs=[get_numpy_include_dirs()])
    config.add_extension('tvdenoise', sources=['tvdenoise.c'],
                         include_dirs=[get_numpy_include_dirs()])
    config.add_extension('shock', sources=['shock.c'],
                         include_dirs=[get_numpy_include_dirs()])
    config.add_extension('nlmeans', sources=['nlmeans.c'],
                         include_dirs=[get_numpy_include_dirs()])
    config.add_extension('perdecomp', sources=['perdecomp.c'],
                         include_dirs=[get_numpy_include_dirs()])

    return config
Ejemplo n.º 2
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs

    config = Configuration('io', parent_package, top_path)
    config.add_data_dir('tests')
    config.add_data_files('_plugins/*.ini')

    # This function tries to create C files from the given .pyx files.  If
    # it fails, we build the checked-in .c files.
    cython(['_plugins/_colormixer.pyx', '_plugins/_histograms.pyx'],
           working_path=base_path)
    cython(['_plugins/_scivi2_utils.pyx'],
           working_path=base_path)

    config.add_extension('_plugins._colormixer',
                         sources=['_plugins/_colormixer.c'],
                         include_dirs=[get_numpy_include_dirs()])

    config.add_extension('_plugins._histograms',
                         sources=['_plugins/_histograms.c'],
                         include_dirs=[get_numpy_include_dirs()])

    config.add_extension('_plugins._scivi2_utils',
                         sources=['_plugins/_scivi2_utils.c'],
                         include_dirs=[get_numpy_include_dirs()])

    return config
Ejemplo n.º 3
0
def configuration(parent_package="", top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs

    config = Configuration("transform", parent_package, top_path)
    config.add_data_dir("tests")

    cython(["_hough_transform.pyx"], working_path=base_path)

    config.add_extension("_hough_transform", sources=["_hough_transform.c"], include_dirs=[get_numpy_include_dirs()])

    return config
Ejemplo n.º 4
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs

    config = Configuration('filter', parent_package, top_path)
    config.add_data_dir('tests')

    cython(['_ctmf.pyx'], working_path=base_path)

    config.add_extension('_ctmf', sources=['_ctmf.c'],
                         include_dirs=[get_numpy_include_dirs()])

    return config
Ejemplo n.º 5
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs

    config = Configuration('morphology', parent_package, top_path)
    config.add_data_dir('tests')

    cython(['cmorph.pyx'], working_path=base_path)

    config.add_extension('cmorph', sources=['cmorph.c'],
                         include_dirs=[get_numpy_include_dirs()])

    return config
Ejemplo n.º 6
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs

    config = Configuration('transform', parent_package, top_path)
    config.add_data_dir('tests')

    # This function tries to create C files from the given .pyx files.  If
    # it fails, try to build with pre-generated .c files.
    cython(['zoom.pyx'], working_path=base_path)

    config.add_extension('zoom', sources=['zoom.c'],
                         include_dirs=[get_numpy_include_dirs()])

    return config
Ejemplo n.º 7
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs

    config = Configuration('graph', parent_package, top_path)
    config.add_data_dir('tests')

    # This function tries to create C files from the given .pyx files.  If
    # it fails, we build the checked-in .c files.
    cython(['spath.pyx'], working_path=base_path)

    config.add_extension('spath', sources=['spath.c'],
                         include_dirs=[get_numpy_include_dirs()])

    return config
Ejemplo n.º 8
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs

    config = Configuration('transform', parent_package, top_path)
    config.add_data_dir('tests')

    cython(['_hough_transform.pyx'], working_path=base_path)
    cython(['_project.pyx'], working_path=base_path)

    config.add_extension('_hough_transform', sources=['_hough_transform.c'],
                         include_dirs=[get_numpy_include_dirs()])

    config.add_extension('_project', sources=['_project.c'],
                         include_dirs=[get_numpy_include_dirs()])

    return config
Ejemplo n.º 9
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs

    config = Configuration('opencv', parent_package, top_path)

    config.add_data_dir('tests')

    cython_files = ['opencv_backend.pyx', 'opencv_cv.pyx']

    # This function tries to create C files from the given .pyx files.  If
    # it fails, we build the checked-in .c files.
    cython(cython_files, working_path=base_path)

    for pyxfile in cython_files:
        c_file = pyxfile[:-4] + '.c'
        config.add_extension(pyxfile[:-4],
                             sources=[c_file],
                             include_dirs=[get_numpy_include_dirs()])

    return config
Ejemplo n.º 10
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs

    config = Configuration('opencv', parent_package, top_path)

    config.add_data_dir('tests')

    cython_files = ['opencv_backend.pyx', 'opencv_cv.pyx']

    # This function tries to create C files from the given .pyx files.  If
    # it fails, we build the checked-in .c files.
    cython(cython_files, working_path=base_path)

    for pyxfile in cython_files:
        c_file = pyxfile[:-4] + '.c'
        config.add_extension(pyxfile[:-4],
                             sources=[c_file],
                             include_dirs=[get_numpy_include_dirs()])

    return config
Ejemplo n.º 11
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs

    config = Configuration('io', parent_package, top_path)
    config.add_data_dir('tests')
    config.add_data_files('_plugins/*.ini')

    # This function tries to create C files from the given .pyx files.  If
    # it fails, we build the checked-in .c files.
    cython(['_plugins/_colormixer.pyx', '_plugins/_histograms.pyx'],
           working_path=base_path)

    config.add_extension('_plugins._colormixer',
                         sources=['_plugins/_colormixer.c'],
                         include_dirs=[get_numpy_include_dirs()])

    config.add_extension('_plugins._histograms',
                         sources=['_plugins/_histograms.c'],
                         include_dirs=[get_numpy_include_dirs()])

    return config