Esempio n. 1
0
def configuration(parent_package='', parent_path=None):
    package = 'plt'
    local_path = get_path(__name__, parent_path)
    config = default_config_dict(package, parent_package)

    data = ['lena.dat']
    data = [os.path.join(local_path, x) for x in data]
    config['data_files'].extend([(os.path.join(parent_package, 'plt'), data)])

    return config
Esempio n. 2
0
def configuration(parent_package='',parent_path=None):
    package = 'plt'
    local_path = get_path(__name__,parent_path)
    config = default_config_dict(package,parent_package)

    data = ['lena.dat']
    data = [os.path.join(local_path,x) for x in data]               
    config['data_files'].extend( [(os.path.join(parent_package,'plt'),data)])
  
    return config
Esempio n. 3
0
def configuration(parent_package='',parent_path=None):
    package = 'gplt'
    local_path = get_path(__name__,parent_path)
    config = default_config_dict(package,parent_package)

    if sys.platform == 'win32':
        data = ['wgnuplot.exe', 'gnuplot_helper.exe']
        data = [os.path.join(local_path,x) for x in data]
        config['data_files'].append((os.path.join(parent_package,'gplt'),data))
    return config
Esempio n. 4
0
def configuration(parent_package=''):
    package = 'linalg'
    config = default_config_dict(package, parent_package)
    del config['fortran_libraries']
    local_path = get_path(__name__)
    atlas_info = get_info('atlas_threads')
    if not atlas_info:
        atlas_info = get_info('atlas')
    if not atlas_info:
        raise AtlasNotFoundError(AtlasNotFoundError.__doc__)
    ext = Extension('atlas_version',
                    sources=[os.path.join(local_path, 'atlas_version.c')],
                    libraries=[atlas_info['libraries'][-1]],
                    library_dirs=atlas_info['library_dirs'])
    config['ext_modules'].append(ext)
    return config
def configuration (parent_package=''):
    package = 'linalg'
    config = default_config_dict(package,parent_package)
    del config['fortran_libraries']
    local_path = get_path(__name__)
    atlas_info = get_info('atlas_threads')
    if not atlas_info:
        atlas_info = get_info('atlas')
    if not atlas_info:
        raise AtlasNotFoundError(AtlasNotFoundError.__doc__)
    ext = Extension('atlas_version',
                    sources=[os.path.join(local_path,'atlas_version.c')],
                    libraries=[atlas_info['libraries'][-1]],
                    library_dirs=atlas_info['library_dirs'])
    config['ext_modules'].append(ext)
    return config
Esempio n. 6
0
def configuration(parent_package='',parent_path=None):
    package = 'plt'
    local_path = get_path(__name__,parent_path)
    config = default_config_dict(package,parent_package)
    return config