Exemple #1
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
    from cython_gsl import get_include, get_libraries, get_library_dir
    
    config = Configuration('halo', parent_package, top_path)

    cython(['bias.pyx'], working_path=base_path)
    
    config.add_extension('bias', sources=['bias.c', 'halo_tools.c'],
                         include_dirs=[get_numpy_include_dirs(), get_include(), ''],
                         libraries=get_libraries(), library_dirs=[get_library_dir()],
                         extra_compile_args=['-O3', '-w'],
                         extra_link_args=['-g'])
                         
    return config
Exemple #2
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
    from cython_gsl import get_include, get_libraries, get_library_dir
    
    config = Configuration('growth', parent_package, top_path)

    cython(['core.pyx'], working_path=base_path)
    cython(['power.pyx'], working_path=base_path)
    cython(['correlation.pyx'], working_path=base_path)
    cython(['lensing.pyx'], working_path=base_path)
    cython(['emulator.pyx'], working_path=base_path)

    config.add_extension('core', sources=['core.c', 'transfer.c', 'power_tools.c'],
                         include_dirs=[get_numpy_include_dirs(), get_include(), ''],
                         libraries=get_libraries(), library_dirs=[get_library_dir()],
                         extra_compile_args=['-O3', '-w'],
                         extra_link_args=['-g'])

    config.add_extension('power', sources=['power.c', 'transfer.c', 'power_tools.c'],
                         include_dirs=[get_numpy_include_dirs(), get_include(), ''],
                         libraries=get_libraries(), library_dirs=[get_library_dir()],
                         extra_compile_args=['-O3', '-w'],
                         extra_link_args=['-g'])
    
    config.add_extension('correlation', sources=['correlation.c', 'power_tools.c', 'transfer.c'],
                         include_dirs=[get_numpy_include_dirs(), get_include(), ''],
                         libraries=get_libraries(), library_dirs=[get_library_dir()],
                         extra_compile_args=['-O3', '-w'],
                         extra_link_args=['-g'])

    config.add_extension('lensing', sources=['lensing.c', 'power_tools.c', 'transfer.c'],
                         include_dirs=[get_numpy_include_dirs(), get_include(), ''],
                         libraries=get_libraries(), library_dirs=[get_library_dir()],
                         extra_compile_args=['-O3', '-w'],
                         extra_link_args=['-g'])
    
    
    sources = ['emulator.c', 'emulator/core.c', 'emulator/emu.c', 'emulator/emu_noh.c', \
                'emulator/hubble.c', 'hod_emulator/core.c', 'hod_emulator/emu.c']
    config.add_extension('emulator', sources=sources ,
                          include_dirs=[get_numpy_include_dirs(), get_include(), '', 'emulator', 'hod_emulator'],
                          libraries=get_libraries(), library_dirs=[get_library_dir(), 'emulator', 'hod_emulator'],
                          extra_compile_args=['-O3', '-w'],
                          extra_link_args=['-g'])

    return config