Esempio n. 1
0
def configuration(parent_package='', top_path=None):
    import numpy
    from numpy.distutils.misc_util import Configuration
    from numpy.distutils.core import setup, Extension
    from numpy.distutils.system_info import lapack_info, lapack_mkl_info, lapack_opt_info
    from os.path import join, exists

    config = Configuration('registration', parent_package, top_path)
    lapack_libs = []
    lapack_lib_dirs = []
    lapack_include_dirs = []
    lapack_extra_compile_args = []
    lapack_extra_link_args = []
    for l in [lapack_mkl_info().get_info(), lapack_opt_info().get_info(), lapack_info().get_info()]:
        try:
            lapack_libs += l['libraries']
            lapack_lib_dirs += l['library_dirs']
            lapack_include_dirs += l['include_dirs']
            lapack_extra_compile_args += l['extra_compile_args']
            lapack_extra_link_args += l['extra_link_args']
            break
        except:
            pass
    config.add_subpackage('metric')
    config.add_subpackage('model')
    config.add_subpackage('optimizer')

    return config
Esempio n. 2
0
def configuration(parent_package='', top_path=None):
    import numpy
    from numpy.distutils.misc_util import Configuration
    from numpy.distutils.core import setup, Extension
    from numpy.distutils.system_info import lapack_info, lapack_mkl_info, lapack_opt_info
    from os.path import join, exists

    config = Configuration('registration', parent_package, top_path)
    lapack_libs = []
    lapack_lib_dirs = []
    lapack_include_dirs = []
    lapack_extra_compile_args = []
    lapack_extra_link_args = []
    for l in [
            lapack_mkl_info().get_info(),
            lapack_opt_info().get_info(),
            lapack_info().get_info()
    ]:
        try:
            lapack_libs += l['libraries']
            lapack_lib_dirs += l['library_dirs']
            lapack_include_dirs += l['include_dirs']
            lapack_extra_compile_args += l['extra_compile_args']
            lapack_extra_link_args += l['extra_link_args']
            break
        except:
            pass
    config.add_subpackage('metric')
    config.add_subpackage('model')
    config.add_subpackage('optimizer')

    return config
Esempio n. 3
0
def configuration(parent_package='', top_path=None):
    import numpy
    from numpy.distutils.misc_util import Configuration
    from numpy.distutils.core import setup, Extension
    from numpy.distutils.system_info import lapack_info, lapack_mkl_info, lapack_opt_info
    from os.path import join, exists

    config = Configuration('metric', parent_package, top_path)
    lapack_libs = []
    lapack_lib_dirs = []
    lapack_include_dirs = []
    lapack_extra_compile_args = []
    lapack_extra_link_args = []
    for l in [
            lapack_mkl_info().get_info(),
            lapack_opt_info().get_info(),
            lapack_info().get_info()
    ]:
        try:
            lapack_libs += l['libraries']
            lapack_lib_dirs += l['library_dirs']
            lapack_include_dirs += l['include_dirs']
            lapack_extra_compile_args += l['extra_compile_args']
            lapack_extra_link_args += l['extra_link_args']
            break
        except:
            pass
    config.add_extension(
        '_metrics_densities',
        define_macros=[('MAJOR_VERSION', '0'), ('MINOR_VERSION', '1')],
        sources=[
            '_metrics_densities.c',
        ],
        include_dirs=[numpy.get_include()] + lapack_include_dirs,
        libraries=lapack_libs,
        library_dirs=lapack_lib_dirs,
        extra_compile_args=lapack_extra_compile_args + ['-fopenmp'],
        extra_link_args=lapack_extra_link_args + ['-fopenmp'],
    )

    return config
Esempio n. 4
0
def configuration(parent_package='', top_path=None):
    import numpy
    from numpy.distutils.misc_util import Configuration
    from numpy.distutils.core import setup, Extension
    from numpy.distutils.system_info import lapack_info, lapack_mkl_info, lapack_opt_info
    from os.path import join, exists

    config = Configuration('metric', parent_package, top_path)
    lapack_libs = []
    lapack_lib_dirs = []
    lapack_include_dirs = []
    lapack_extra_compile_args = []
    lapack_extra_link_args = []
    for l in [lapack_mkl_info().get_info(), lapack_opt_info().get_info(), lapack_info().get_info()]:
        try:
            lapack_libs += l['libraries']
            lapack_lib_dirs += l['library_dirs']
            lapack_include_dirs += l['include_dirs']
            lapack_extra_compile_args += l['extra_compile_args']
            lapack_extra_link_args += l['extra_link_args']
            break
        except:
            pass
    config.add_extension(
        '_metrics_densities',
        define_macros=[
            ('MAJOR_VERSION', '0'),
            ('MINOR_VERSION', '1')
        ],
        sources=[
            '_metrics_densities.c',
        ],
        include_dirs=[numpy.get_include()] + lapack_include_dirs,
        libraries=lapack_libs,
        library_dirs=lapack_lib_dirs,
        extra_compile_args=lapack_extra_compile_args + ['-fopenmp'],
        extra_link_args=lapack_extra_link_args + ['-fopenmp'],
    )

    return config
Esempio n. 5
0
import numpy.distutils.system_info as sysinfo
lib=sysinfo.lapack_mkl_info().get_info()['libraries']

def configuration(parent_package='',top_path=None):
    from numpy.distutils.misc_util import Configuration
    config=Configuration('futils',parent_package,top_path)
    config.add_extension('fmodule',['fysics.f90'],libraries=lib)
    return config

if __name__ == '__main__':
    from numpy.distutils.core import setup
    setup(configuration=configuration)
Esempio n. 6
0
DESCRIPTION         = 'Scikits sparse matrix package'
LONG_DESCRIPTION    = descr
MAINTAINER          = 'Nathaniel Smith',
MAINTAINER_EMAIL    = '*****@*****.**',
URL                 = 'https://github.com/njsmith/scikits-sparse/'
LICENSE             = 'GPL'
DOWNLOAD_URL        = "https://github.com/njsmith/scikits-sparse/downloads"
VERSION             = '0.1+dev'

from numpy.distutils.core import setup, Extension
from numpy.distutils.system_info import lapack_info, lapack_mkl_info

lapack_libs = []
lapack_lib_dirs = []
lapack_include_dirs = []
for l in [lapack_mkl_info().get_info(), lapack_info().get_info()]:
  try:
    lapack_libs += l['libraries']
    lapack_lib_dirs += l['library_dirs']
    lapack_include_dirs += l['include_dirs']
    break
  except:
    pass

import numpy as np
# the monkey patch trick so that cython is called on pyx files.
import monkey

if __name__ == "__main__":
    setup(install_requires = ['numpy', 'scipy'],
          namespace_packages = ['scikits'],
Esempio n. 7
0
import numpy.distutils.system_info as sysinfo
lib = sysinfo.lapack_mkl_info().get_info()['libraries']


def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration
    config = Configuration('futils', parent_package, top_path)
    config.add_extension('fmodule', ['fysics.f90'], libraries=lib)
    return config


if __name__ == '__main__':
    from numpy.distutils.core import setup
    setup(configuration=configuration)
Esempio n. 8
0
DESCRIPTION = 'Scikits sparse matrix package'
LONG_DESCRIPTION = descr
MAINTAINER = 'Nathaniel Smith',
MAINTAINER_EMAIL = '*****@*****.**',
URL = 'https://github.com/njsmith/scikits-sparse/'
LICENSE = 'GPL'
DOWNLOAD_URL = "https://github.com/njsmith/scikits-sparse/downloads"
VERSION = '0.1+dev'

from numpy.distutils.core import setup, Extension
from numpy.distutils.system_info import lapack_info, lapack_mkl_info

lapack_libs = []
lapack_lib_dirs = []
lapack_include_dirs = []
for l in [lapack_mkl_info().get_info(), lapack_info().get_info()]:
    try:
        lapack_libs += l['libraries']
        lapack_lib_dirs += l['library_dirs']
        lapack_include_dirs += l['include_dirs']
        break
    except:
        pass

import numpy as np
# the monkey patch trick so that cython is called on pyx files.
import monkey

if __name__ == "__main__":
    setup(
        install_requires=['numpy', 'scipy'],