本文整理汇总了Python中numpy.distutils.misc_util.get_numpy_include_dirs函数的典型用法代码示例。如果您正苦于以下问题:Python get_numpy_include_dirs函数的具体用法?Python get_numpy_include_dirs怎么用?Python get_numpy_include_dirs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_numpy_include_dirs函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('restoration', parent_package, top_path)
config.add_data_dir('tests')
cython(['_unwrap_1d.pyx'], working_path=base_path)
cython(['_unwrap_2d.pyx'], working_path=base_path)
cython(['_unwrap_3d.pyx'], working_path=base_path)
cython(['_denoise_cy.pyx'], working_path=base_path)
cython(['_nl_means_denoising.pyx'], working_path=base_path)
config.add_extension('_unwrap_1d', sources=['_unwrap_1d.c'],
include_dirs=[get_numpy_include_dirs()])
unwrap_sources_2d = ['_unwrap_2d.c', 'unwrap_2d_ljmu.c']
config.add_extension('_unwrap_2d', sources=unwrap_sources_2d,
include_dirs=[get_numpy_include_dirs()])
unwrap_sources_3d = ['_unwrap_3d.c', 'unwrap_3d_ljmu.c']
config.add_extension('_unwrap_3d', sources=unwrap_sources_3d,
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_denoise_cy', sources=['_denoise_cy.c'],
include_dirs=[get_numpy_include_dirs(), '../_shared'])
config.add_extension('_nl_means_denoising',
sources=['_nl_means_denoising.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:AbdealiJK,项目名称:scikit-image,代码行数:27,代码来源:setup.py
示例2: configuration
def configuration(parent_package="", top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration("measure", parent_package, top_path)
config.add_data_dir("tests")
cython(["_ccomp.pyx"], working_path=base_path)
cython(["_find_contours_cy.pyx"], working_path=base_path)
cython(["_moments_cy.pyx"], working_path=base_path)
cython(["_marching_cubes_classic_cy.pyx"], working_path=base_path)
cython(["_marching_cubes_lewiner_cy.pyx"], working_path=base_path)
cython(["_pnpoly.pyx"], working_path=base_path)
config.add_extension("_ccomp", sources=["_ccomp.c"], include_dirs=[get_numpy_include_dirs()])
config.add_extension("_find_contours_cy", sources=["_find_contours_cy.c"], include_dirs=[get_numpy_include_dirs()])
config.add_extension("_moments_cy", sources=["_moments_cy.c"], include_dirs=[get_numpy_include_dirs()])
config.add_extension(
"_marching_cubes_classic_cy", sources=["_marching_cubes_classic_cy.c"], include_dirs=[get_numpy_include_dirs()]
)
config.add_extension(
"_marching_cubes_lewiner_cy", sources=["_marching_cubes_lewiner_cy.c"], include_dirs=[get_numpy_include_dirs()]
)
config.add_extension("_pnpoly", sources=["_pnpoly.c"], include_dirs=[get_numpy_include_dirs(), "../_shared"])
return config
开发者ID:soupault,项目名称:scikit-image,代码行数:25,代码来源:setup.py
示例3: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
from numpy.distutils.system_info import get_info
from distutils.sysconfig import get_python_inc
config = Configuration('spatial', parent_package, top_path)
config.add_data_dir('tests')
qhull_src = ['geom2.c', 'geom.c', 'global.c', 'io.c', 'libqhull.c',
'mem.c', 'merge.c', 'poly2.c', 'poly.c', 'qset.c',
'random.c', 'rboxlib.c', 'stat.c', 'user.c', 'usermem.c',
'userprintf.c', 'userprintf_rbox.c']
qhull_src = [join('qhull', 'src', x) for x in qhull_src]
inc_dirs = [get_python_inc()]
if inc_dirs[0] != get_python_inc(plat_specific=1):
inc_dirs.append(get_python_inc(plat_specific=1))
inc_dirs.append(get_numpy_include_dirs())
cfg = dict(get_info('lapack_opt'))
cfg.setdefault('include_dirs', []).extend(inc_dirs)
cfg.setdefault('define_macros', []).append(('qh_QHpointer','1'))
config.add_extension('qhull',
sources=['qhull.c'] + qhull_src,
**cfg)
config.add_extension('ckdtree', sources=['ckdtree.c']) # FIXME: cython
config.add_extension('_distance_wrap',
sources=[join('src', 'distance_wrap.c')],
depends=[join('src', 'distance_impl.h')],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:Arasz,项目名称:scipy,代码行数:35,代码来源:setup.py
示例4: configuration
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
开发者ID:maelp,项目名称:scikits.image,代码行数:26,代码来源:setup.py
示例5: configuration
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()])
config.add_extension('_plugins._tifffile',
sources=['_plugins/tifffile.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:Rapternmn,项目名称:scikit-image,代码行数:25,代码来源:setup.py
示例6: configuration
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')
config.add_data_dir('rank/tests')
cython(['_ctmf.pyx'], working_path=base_path)
cython(['rank/core_cy.pyx'], working_path=base_path)
cython(['rank/generic_cy.pyx'], working_path=base_path)
cython(['rank/percentile_cy.pyx'], working_path=base_path)
cython(['rank/bilateral_cy.pyx'], working_path=base_path)
config.add_extension('_ctmf', sources=['_ctmf.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('rank.core_cy', sources=['rank/core_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('rank.generic_cy', sources=['rank/generic_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension(
'rank.percentile_cy', sources=['rank/percentile_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension(
'rank.bilateral_cy', sources=['rank/bilateral_cy.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:A-0-,项目名称:scikit-image,代码行数:27,代码来源:setup.py
示例7: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
from numpy.distutils.misc_util import get_info as get_misc_info
from numpy.distutils.system_info import get_info as get_sys_info
from distutils.sysconfig import get_python_inc
config = Configuration('spatial', parent_package, top_path)
config.add_data_dir('tests')
# qhull
qhull_src = ['geom2.c', 'geom.c', 'global.c', 'io.c', 'libqhull.c',
'mem.c', 'merge.c', 'poly2.c', 'poly.c', 'qset.c',
'random.c', 'rboxlib.c', 'stat.c', 'user.c', 'usermem.c',
'userprintf.c', 'userprintf_rbox.c']
qhull_src = [join('qhull', 'src', x) for x in qhull_src]
inc_dirs = [get_python_inc()]
if inc_dirs[0] != get_python_inc(plat_specific=1):
inc_dirs.append(get_python_inc(plat_specific=1))
inc_dirs.append(get_numpy_include_dirs())
cfg = dict(get_sys_info('lapack_opt'))
cfg.setdefault('include_dirs', []).extend(inc_dirs)
cfg.setdefault('define_macros', []).append(('qh_QHpointer','1'))
config.add_extension('qhull',
sources=['qhull.c'] + qhull_src,
**cfg)
# cKDTree
ckdtree_src = ['ckdtree_query.cxx',
'ckdtree_globals.cxx',
'ckdtree_cpp_exc.cxx']
ckdtree_src = [join('ckdtree', 'src', x) for x in ckdtree_src]
ckdtree_headers = ['ckdtree_decl.h',
'ckdtree_exc.h',
'ckdtree_methods.h',
'ckdtree_utils.h']
ckdtree_headers = [join('ckdtree', 'src', x) for x in ckdtree_headers]
ckdtree_dep = ['ckdtree.cxx'] + ckdtree_headers + ckdtree_src
config.add_extension('ckdtree',
sources=[join('ckdtree', 'ckdtree.cxx')] + ckdtree_src,
depends=ckdtree_dep,
include_dirs=inc_dirs + [join('ckdtree','src')])
# _distance_wrap
config.add_extension('_distance_wrap',
sources=[join('src', 'distance_wrap.c')],
depends=[join('src', 'distance_impl.h')],
include_dirs=[get_numpy_include_dirs()],
extra_info=get_misc_info("npymath"))
return config
开发者ID:WillieMaddox,项目名称:scipy,代码行数:53,代码来源:setup.py
示例8: configuration
def configuration(parent_package="", top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration("feature", parent_package, top_path)
config.add_data_dir("tests")
cython(["_texture.pyx"], working_path=base_path)
cython(["_template.pyx"], working_path=base_path)
config.add_extension("_texture", sources=["_texture.c"], include_dirs=[get_numpy_include_dirs(), "../_shared"])
config.add_extension("_template", sources=["_template.c"], include_dirs=[get_numpy_include_dirs(), "../_shared"])
return config
开发者ID:GerardoLopez,项目名称:scikits-image,代码行数:13,代码来源:setup.py
示例9: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('feature', parent_package, top_path)
config.add_data_dir('tests')
cython(['corner_cy.pyx'], working_path=base_path)
cython(['censure_cy.pyx'], working_path=base_path)
cython(['orb_cy.pyx'], working_path=base_path)
cython(['brief_cy.pyx'], working_path=base_path)
cython(['_texture.pyx'], working_path=base_path)
cython(['_hessian_det_appx.pyx'], working_path=base_path)
cython(['_hoghistogram.pyx'], working_path=base_path)
cython(['_haar.pyx'], working_path=base_path)
config.add_extension('corner_cy', sources=['corner_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('censure_cy', sources=['censure_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('orb_cy', sources=['orb_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('brief_cy', sources=['brief_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_texture', sources=['_texture.c'],
include_dirs=[get_numpy_include_dirs(), '../_shared'])
config.add_extension('_hessian_det_appx', sources=['_hessian_det_appx.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_hoghistogram', sources=['_hoghistogram.c'],
include_dirs=[get_numpy_include_dirs(), '../_shared'])
config.add_extension('_haar', sources=['_haar.cpp'],
include_dirs=[get_numpy_include_dirs(), '../_shared'],
language="c++")
return config
开发者ID:Cadair,项目名称:scikit-image,代码行数:34,代码来源:setup.py
示例10: configuration
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)
cython(['_denoise.pyx'], working_path=base_path)
config.add_extension('_ctmf', sources=['_ctmf.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_denoise', sources=['_denoise.c'],
include_dirs=[get_numpy_include_dirs(), '../_shared'])
return config
开发者ID:teoliphant,项目名称:scikit-image,代码行数:15,代码来源:setup.py
示例11: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('feature', parent_package, top_path)
config.add_data_dir('tests')
cython(['_greycomatrix.pyx'], working_path=base_path)
cython(['_template.pyx'], working_path=base_path)
config.add_extension('_greycomatrix', sources=['_greycomatrix.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_template', sources=['_template.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:kif,项目名称:scikits-image,代码行数:15,代码来源:setup.py
示例12: configuration
def configuration(parent_package = '', top_path = None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('cluster', parent_package, top_path)
config.add_data_dir('tests')
config.add_extension('_vq',
sources=[join('src', 'vq_module.c'), join('src', 'vq.c')],
include_dirs = [get_numpy_include_dirs()])
config.add_extension('_hierarchy_wrap',
sources=[join('src', 'hierarchy_wrap.c'), join('src', 'hierarchy.c')],
include_dirs = [get_numpy_include_dirs()])
return config
开发者ID:AndreI11,项目名称:SatStressGui,代码行数:15,代码来源:setup.py
示例13: configuration
def configuration(parent_package="", top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
from numpy.distutils.system_info import get_info
from distutils.sysconfig import get_python_inc
config = Configuration("spatial", parent_package, top_path)
config.add_data_dir("tests")
config.add_data_dir("benchmarks")
qhull_src = [
"geom2.c",
"geom.c",
"global.c",
"io.c",
"libqhull.c",
"mem.c",
"merge.c",
"poly2.c",
"poly.c",
"qset.c",
"random.c",
"rboxlib.c",
"stat.c",
"user.c",
"usermem.c",
"userprintf.c",
"userprintf_rbox.c",
]
qhull_src = [join("qhull", "src", x) for x in qhull_src]
inc_dirs = [get_python_inc()]
if inc_dirs[0] != get_python_inc(plat_specific=1):
inc_dirs.append(get_python_inc(plat_specific=1))
inc_dirs.append(get_numpy_include_dirs())
cfg = dict(get_info("lapack_opt"))
cfg.setdefault("include_dirs", []).extend(inc_dirs)
cfg.setdefault("define_macros", []).append(("qh_QHpointer", "1"))
config.add_extension("qhull", sources=["qhull.c"] + qhull_src, **cfg)
config.add_extension("ckdtree", sources=["ckdtree.c"]) # FIXME: cython
config.add_extension(
"_distance_wrap", sources=[join("src", "distance_wrap.c")], include_dirs=[get_numpy_include_dirs()]
)
return config
开发者ID:manderle01,项目名称:Naive-Bayes,代码行数:48,代码来源:setup.py
示例14: build_extensions
def build_extensions(self):
from numpy.distutils.misc_util import get_numpy_include_dirs
for e in self.extensions:
e.include_dirs.extend(get_numpy_include_dirs())
build_ext.build_extensions(self)
开发者ID:hdfeos,项目名称:bcolz,代码行数:7,代码来源:setup.py
示例15: configuration
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
from numpy.distutils.system_info import get_info, system_info
config = Configuration('labs', parent_package, top_path)
# fff library
config.add_include_dirs(os.path.join(LIBS,'fff'))
config.add_include_dirs(os.path.join(LIBS,'fff_python_wrapper'))
config.add_include_dirs(get_numpy_include_dirs())
sources = [os.path.join(LIBS,'fff','*.c')]
sources.append(os.path.join(LIBS,'fff_python_wrapper','*.c'))
config.add_library('cstat', sources=sources)
# Subpackages
config.add_subpackage('bindings')
config.add_subpackage('glm')
config.add_subpackage('group')
config.add_subpackage('spatial_models')
config.add_subpackage('utils')
config.add_subpackage('viz_tools')
config.add_subpackage('datasets')
config.add_subpackage('tests')
config.make_config_py() # installs __config__.py
return config
开发者ID:Lx37,项目名称:nipy,代码行数:29,代码来源:setup.py
示例16: configuration
def configuration(parent_package = '', top_path = None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
from numpy.distutils.system_info import get_info
config = Configuration('spatial', parent_package, top_path)
config.add_data_dir('tests')
qhull_src = ['geom.c', 'geom2.c', 'global.c', 'io.c', 'mem.c',
'merge.c', 'poly.c', 'poly2.c', 'qset.c', 'user.c',
'stat.c', 'qhull.c']
config.add_library('qhull',
sources=[join('qhull', 'src', x) for x in qhull_src],
# XXX: GCC dependency!
#extra_compiler_args=['-fno-strict-aliasing'],
)
lapack = dict(get_info('lapack_opt'))
try:
libs = ['qhull'] + lapack.pop('libraries')
except KeyError:
libs = ['qhull']
config.add_extension('qhull',
sources=['qhull.c'],
libraries=libs,
**lapack)
config.add_extension('ckdtree', sources=['ckdtree.c']) # FIXME: cython
config.add_extension('_distance_wrap',
sources=[join('src', 'distance_wrap.c'), join('src', 'distance.c')],
include_dirs = [get_numpy_include_dirs()])
return config
开发者ID:dagss,项目名称:private-scipy-refactor,代码行数:35,代码来源:setup.py
示例17: configuration
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, try to build with pre-generated .c files.
cython(['_ncut_cy.pyx', 'rag.pyx', 'graph_merge.pyx'], working_path=base_path)
config.add_extension('_ncut_cy', sources=['_ncut_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('rag', sources=['rag.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('graph_merge', sources=['graph_merge.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:wkentaro,项目名称:scikit-image,代码行数:16,代码来源:setup.py
示例18: pkgconfig
def pkgconfig(*packages, **kw):
flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'}
for token in commands.getoutput("pkg-config --libs --cflags %s" % ' '.join(packages)).split():
kw.setdefault(flag_map.get(token[:2]), []).append(token[2:])
try:
kw["libraries"].append("boost_python")
except:
kw["libraries"] = ["boost_python"]
try:
kw["library_dirs"].append(boost_library_dir)
except:
pass
try:
kw["include_dirs"].append(boost_inc_dir)
except:
pass
if not kw.has_key("extra_compile_args"):
kw["extra_compile_args"] = []
kw["include_dirs"].append(misc_util.get_numpy_include_dirs()[0])
#kw["extra_compile_args"].append('-std=c++0x')
if cpp_11_support:
kw["extra_compile_args"].append("-std=c++0x")
if debug:
kw["extra_compile_args"].append('-O0')
kw["extra_compile_args"].append('-g')
return kw
开发者ID:nhauser,项目名称:cdma,代码行数:35,代码来源:setup.py
示例19: check_numpy
def check_numpy(_, options, package):
"""See if the NumPy extension has been installed.
"""
if options.disable_numpy:
options.excluded_features.append("-x HAS_NUMPY")
return options
try:
import numpy
# Try to find numpy/arrayobject.h.
from numpy.distutils.misc_util import get_numpy_include_dirs
include_dirs = get_numpy_include_dirs()
for inc_dir in include_dirs:
header = os.path.join(inc_dir, 'numpy', 'arrayobject.h')
if os.access(header, os.F_OK):
break
else:
print ('NumPy has been installed, '
'but its headers are not in the standard location.\n'
'%s will be build without support for NumPy.\n'
'(Linux users may have to install a development package)\n'
) % (package,)
raise ImportError
print 'Found NumPy-%s.\n' % numpy.__version__
options.extra_defines.append('HAS_NUMPY')
options.extra_include_dirs.extend(include_dirs)
except ImportError:
options.excluded_features.append("-x HAS_NUMPY")
print ("Failed to find NumPy: "
"%s will be build without support for NumPy.\n"
) % (package,)
return options
开发者ID:b4ss3k,项目名称:unicef-sdr-research,代码行数:34,代码来源:configure.py
示例20: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
from skimage._build import cython
config = Configuration('resample', parent_package, top_path)
config.add_data_dir('tests')
cython(['_resample.pyx'], working_path=base_path)
config.add_extension(
'_resample',
sources=['_resample.c'],
include_dirs=[get_numpy_include_dirs()],
extra_compile_args=[
"-fopenmp",
"-pthread",
"-O6",
"-march=native",
"-mtune=native",
"-funroll-all-loops",
"-fomit-frame-pointer",
"-march=native",
"-mtune=native",
"-msse4",
"-ftree-vectorize",
"-ftree-vectorizer-verbose=5",
],
extra_link_args=['-fopenmp'],
)
return config
开发者ID:nsf-ri-ubicv,项目名称:sthor,代码行数:31,代码来源:setup.py
注:本文中的numpy.distutils.misc_util.get_numpy_include_dirs函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论