Python numpy.distutils.misc_util.Configuration() Examples
The following are 30
code examples of numpy.distutils.misc_util.Configuration().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
numpy.distutils.misc_util
, or try the search function
.
Example #1
Source File: setup.py From lambda-packs with MIT License | 7 votes |
def configuration(parent_package='', top_path=None): from numpy import get_include from numpy.distutils.system_info import get_info, NotFoundError from numpy.distutils.misc_util import Configuration lapack_opt = get_info('lapack_opt') if not lapack_opt: raise NotFoundError('no lapack/blas resources found') config = Configuration('_trlib', parent_package, top_path) config.add_extension('_trlib', sources=['_trlib.c', 'trlib_krylov.c', 'trlib_eigen_inverse.c', 'trlib_leftmost.c', 'trlib_quadratic_zero.c', 'trlib_tri_factor.c'], include_dirs=[get_include(), 'trlib'], extra_info=lapack_opt, ) return config
Example #2
Source File: setup.py From pulse2percept with BSD 3-Clause "New" or "Revised" License | 6 votes |
def configuration(parent_package='', top_path=None): import numpy from numpy.distutils.misc_util import Configuration config = Configuration('stimuli', parent_package, top_path) libraries = [] if os.name == 'posix': libraries.append('m') if platform.python_implementation() != 'PyPy': config.add_extension('_base', sources=['_base.pyx'], include_dirs=[numpy.get_include()], libraries=libraries) config.add_subpackage('tests') config.add_data_dir('data') return config
Example #3
Source File: setup.py From skutil with BSD 3-Clause "New" or "Revised" License | 6 votes |
def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration(None, parent_package, top_path) # Avoid non-useful msg # "Ignoring attempt to set 'name' (from ... " config.set_options(ignore_setup_xxx_py=True, assume_default_configuration=True, delegate_options_to_subpackages=True, quiet=True) config.add_subpackage(DISTNAME) return config # the default dict for a non-up-to-date package
Example #4
Source File: setup.py From lambda-packs with MIT License | 6 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('numpy', parent_package, top_path) config.add_subpackage('compat') config.add_subpackage('core') config.add_subpackage('distutils') config.add_subpackage('doc') config.add_subpackage('f2py') config.add_subpackage('fft') config.add_subpackage('lib') config.add_subpackage('linalg') config.add_subpackage('ma') config.add_subpackage('matrixlib') config.add_subpackage('polynomial') config.add_subpackage('random') config.add_subpackage('testing') config.add_data_dir('doc') config.add_data_dir('tests') config.make_config_py() # installs __config__.py return config
Example #5
Source File: setup.py From skutil with BSD 3-Clause "New" or "Revised" License | 6 votes |
def configuration(parent_package="", top_path=None): config = Configuration("metrics", parent_package, top_path) cblas_libs, blas_info = get_blas_info() if os.name == 'posix': cblas_libs.append('m') config.add_extension("_kernel_fast", sources=["_kernel_fast.c"], include_dirs=[os.path.join('..', 'src', 'cblas'), numpy.get_include(), blas_info.pop('include_dirs', [])], libraries=cblas_libs, extra_compile_args=blas_info.pop('extra_compile_args', []), **blas_info) config.add_subpackage('tests') return config
Example #6
Source File: setup.py From lambda-packs with MIT License | 6 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('scipy',parent_package,top_path) config.add_subpackage('cluster') config.add_subpackage('constants') config.add_subpackage('fftpack') config.add_subpackage('integrate') config.add_subpackage('interpolate') config.add_subpackage('io') config.add_subpackage('linalg') config.add_data_files('*.pxd') config.add_subpackage('misc') config.add_subpackage('odr') config.add_subpackage('optimize') config.add_subpackage('signal') config.add_subpackage('sparse') config.add_subpackage('spatial') config.add_subpackage('special') config.add_subpackage('stats') config.add_subpackage('ndimage') config.add_subpackage('_build_utils') config.add_subpackage('_lib') config.make_config_py() return config
Example #7
Source File: setup.py From lambda-packs with MIT License | 6 votes |
def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('signal', parent_package, top_path) config.add_data_dir('tests') config.add_extension('sigtools', sources=['sigtoolsmodule.c', 'firfilter.c', 'medianfilter.c', 'lfilter.c.src', 'correlate_nd.c.src'], depends=['sigtools.h'], include_dirs=['.'], **numpy_nodepr_api) config.add_extension('_spectral', sources=['_spectral.c']) config.add_extension('_max_len_seq_inner', sources=['_max_len_seq_inner.c']) config.add_extension('_upfirdn_apply', sources=['_upfirdn_apply.c']) spline_src = ['splinemodule.c', 'S_bspline_util.c', 'D_bspline_util.c', 'C_bspline_util.c', 'Z_bspline_util.c', 'bspline_util.c'] config.add_extension('spline', sources=spline_src, **numpy_nodepr_api) return config
Example #8
Source File: setup.py From pulse2percept with BSD 3-Clause "New" or "Revised" License | 6 votes |
def configuration(parent_package='', top_path=None): if os.path.exists('MANIFEST'): os.remove('MANIFEST') from numpy.distutils.misc_util import Configuration config = Configuration(None, parent_package, top_path) # Avoid non-useful msg: # "Ignoring attempt to set 'name' (from ... " config.set_options(ignore_setup_xxx_py=True, assume_default_configuration=True, delegate_options_to_subpackages=True, quiet=True) config.add_subpackage('pulse2percept') return config
Example #9
Source File: setup.py From pulse2percept with BSD 3-Clause "New" or "Revised" License | 6 votes |
def configuration(parent_package='', top_path=None): import numpy from numpy.distutils.misc_util import Configuration config = Configuration('models', parent_package, top_path) libraries = [] if os.name == 'posix': libraries.append('m') if platform.python_implementation() != 'PyPy': config.add_extension('_beyeler2019', sources=['_beyeler2019.pyx'], include_dirs=[numpy.get_include()], libraries=libraries) config.add_extension('_horsager2009', sources=['_horsager2009.pyx'], include_dirs=[numpy.get_include()], libraries=libraries) config.add_extension('_nanduri2012', sources=['_nanduri2012.pyx'], include_dirs=[numpy.get_include()], libraries=libraries) config.add_subpackage("tests") return config
Example #10
Source File: setup.py From vnpy_crypto with MIT License | 5 votes |
def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('matrixlib', parent_package, top_path) config.add_data_dir('tests') return config
Example #11
Source File: setup.py From vnpy_crypto with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('distutils', parent_package, top_path) config.add_subpackage('command') config.add_subpackage('fcompiler') config.add_data_dir('tests') config.add_data_files('site.cfg') config.add_data_files('mingw/gfortran_vs2003_hack.c') config.make_config_py() return config
Example #12
Source File: setup.py From vnpy_crypto with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('compat', parent_package, top_path) return config
Example #13
Source File: setup.py From vnpy_crypto with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('fft', parent_package, top_path) config.add_data_dir('tests') # Configure fftpack_lite config.add_extension('fftpack_lite', sources=['fftpack_litemodule.c', 'fftpack.c'] ) return config
Example #14
Source File: setup.py From vnpy_crypto with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('lib', parent_package, top_path) config.add_data_dir('tests') return config
Example #15
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('ma', parent_package, top_path) config.add_data_dir('tests') return config
Example #16
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='', top_path=None): config = Configuration('f2py', parent_package, top_path) config.add_data_dir('tests') config.add_data_files('src/fortranobject.c', 'src/fortranobject.h', ) config.make_svn_version_py() def generate_f2py_py(build_dir): f2py_exe = 'f2py' + os.path.basename(sys.executable)[6:] if f2py_exe[-4:] == '.exe': f2py_exe = f2py_exe[:-4] + '.py' if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py': f2py_exe = f2py_exe + '.py' target = os.path.join(build_dir, f2py_exe) if newer(__file__, target): log.info('Creating %s', target) f = open(target, 'w') f.write(_get_f2py_shebang() + '\n') mainloc = os.path.join(os.path.dirname(__file__), "__main__.py") with open(mainloc) as mf: f.write(mf.read()) f.close() return target config.add_scripts(generate_f2py_py) log.info('F2PY Version %s', config.get_version()) return config
Example #17
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('lib', parent_package, top_path) config.add_data_dir('tests') return config
Example #18
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('stats', parent_package, top_path) config.add_data_dir('tests') statlib_src = [join('statlib', '*.f')] config.add_library('statlib', sources=statlib_src) # add statlib module config.add_extension('statlib', sources=['statlib.pyf'], f2py_options=['--no-wrap-functions'], libraries=['statlib'], depends=statlib_src ) # add _stats module config.add_extension('_stats', sources=['_stats.c'], ) # add mvn module config.add_extension('mvn', sources=['mvn.pyf','mvndst.f'], ) return config
Example #19
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('distutils', parent_package, top_path) config.add_subpackage('command') config.add_subpackage('fcompiler') config.add_data_dir('tests') config.add_data_files('site.cfg') config.add_data_files('mingw/gfortran_vs2003_hack.c') config.make_config_py() return config
Example #20
Source File: setup.py From vnpy_crypto with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('ma', parent_package, top_path) config.add_data_dir('tests') return config
Example #21
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('compat', parent_package, top_path) return config
Example #22
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('fft', parent_package, top_path) config.add_data_dir('tests') # Configure fftpack_lite config.add_extension('fftpack_lite', sources=['fftpack_litemodule.c', 'fftpack.c'] ) return config
Example #23
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('io', parent_package, top_path) config.add_extension('_test_fortran', sources=['_test_fortran.pyf', '_test_fortran.f']) config.add_data_dir('tests') config.add_subpackage('matlab') config.add_subpackage('arff') config.add_subpackage('harwell_boeing') return config
Example #24
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='io',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('matlab', parent_package, top_path) config.add_extension('streams', sources=['streams.c']) config.add_extension('mio_utils', sources=['mio_utils.c']) config.add_extension('mio5_utils', sources=['mio5_utils.c']) config.add_data_dir('tests') return config
Example #25
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('harwell_boeing',parent_package,top_path) config.add_data_dir('tests') return config
Example #26
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('constants', parent_package, top_path) config.add_data_dir('tests') return config
Example #27
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='', top_path=None): config = Configuration('ndimage', parent_package, top_path) include_dirs = ['src', get_include(), os.path.join(os.path.dirname(__file__), '..', '_lib', 'src')] config.add_extension("_nd_image", sources=["src/nd_image.c","src/ni_filters.c", "src/ni_fourier.c","src/ni_interpolation.c", "src/ni_measure.c", "src/ni_morphology.c","src/ni_support.c"], include_dirs=include_dirs, **numpy_nodepr_api) # Cython wants the .c and .pyx to have the underscore. config.add_extension("_ni_label", sources=["src/_ni_label.c",], include_dirs=['src']+[get_include()]) config.add_extension("_ctest", sources=["src/_ctest.c"], include_dirs=[get_include()], **numpy_nodepr_api) _define_macros = [("OLDAPI", 1)] if 'define_macros' in numpy_nodepr_api: _define_macros.extend(numpy_nodepr_api['define_macros']) config.add_extension("_ctest_oldapi", sources=["src/_ctest.c"], include_dirs=[get_include()], define_macros=_define_macros) config.add_extension("_cytest", sources=["src/_cytest.c"]) config.add_data_dir('tests') return config
Example #28
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_package='', top_path=None): import warnings from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info, BlasNotFoundError config = Configuration('odr', parent_package, top_path) libodr_files = ['d_odr.f', 'd_mprec.f', 'dlunoc.f'] blas_info = get_info('blas_opt') if blas_info: libodr_files.append('d_lpk.f') else: warnings.warn(BlasNotFoundError.__doc__) libodr_files.append('d_lpkbls.f') odrpack_src = [join('odrpack', x) for x in libodr_files] config.add_library('odrpack', sources=odrpack_src) sources = ['__odrpack.c'] libraries = ['odrpack'] + blas_info.pop('libraries', []) include_dirs = ['.'] + blas_info.pop('include_dirs', []) config.add_extension('__odrpack', sources=sources, libraries=libraries, include_dirs=include_dirs, depends=(['odrpack.h'] + odrpack_src), **blas_info ) config.add_data_dir('tests') return config
Example #29
Source File: setup.py From lambda-packs with MIT License | 5 votes |
def configuration(parent_name='special', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('_precompute', parent_name, top_path) return config
Example #30
Source File: setup.py From vnpy_crypto with MIT License | 5 votes |
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('testing', parent_package, top_path) config.add_subpackage('nose_tools') config.add_data_dir('tests') return config