当前位置: 首页>>代码示例>>Python>>正文


Python numpy.numpy_get_include函数代码示例

本文整理汇总了Python中numpy.numpy_get_include函数的典型用法代码示例。如果您正苦于以下问题:Python numpy_get_include函数的具体用法?Python numpy_get_include怎么用?Python numpy_get_include使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了numpy_get_include函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: main

def main():
    if float(sys.version[:3]) < 2.7 or float(sys.version[:3]) >= 2.8:
        sys.stderr.write("CRITICAL: Python version must be 2.7!\n")
        sys.exit(1)

    ext_modules = [
        Extension("MACS2.cProb", ["MACS2/cProb.c"], libraries=["m"], include_dirs=numpy_include_dir),
        Extension("MACS2.IO.cParser", ["MACS2/IO/cParser.c"], include_dirs=numpy_include_dir),
        Extension("MACS2.cPileup", ["MACS2/cPileup.c"], include_dirs=numpy_include_dir),
        Extension("MACS2.cArray", ["MACS2/cArray.c"]),
        Extension("MACS2.cPeakModel", ["MACS2/cPeakModel.c"], include_dirs=numpy_include_dir),
        Extension("MACS2.cPeakDetect", ["MACS2/cPeakDetect.c"]),
        Extension("MACS2.cSignal", ["MACS2/cSignal.c"], include_dirs=numpy_include_dir),
        Extension("MACS2.IO.cPeakIO", ["MACS2/IO/cPeakIO.c"]),
        Extension("MACS2.IO.cBedGraphIO", ["MACS2/IO/cBedGraphIO.c"]),
        Extension("MACS2.IO.cFixWidthTrack", ["MACS2/IO/cFixWidthTrack.c"], include_dirs=numpy_include_dir),
        Extension("MACS2.IO.cPairedEndTrack", ["MACS2/IO/cPairedEndTrack.c"], include_dirs=numpy_include_dir),
        Extension("MACS2.IO.cBedGraph", ["MACS2/IO/cBedGraph.c"], libraries=["m"]),
        Extension("MACS2.IO.cScoreTrack", ["MACS2/IO/cScoreTrack.c"], include_dirs=numpy_include_dir),
        # Extension("MACS2.IO.cDiffScore", ["MACS2/IO/cDiffScore.c"], include_dirs=numpy_include_dir ),
        Extension("MACS2.IO.cCallPeakUnit", ["MACS2/IO/cCallPeakUnit.c"], include_dirs=numpy_include_dir),
        Extension("MACS2.hashtable", ["MACS2/hashtable.c"], include_dirs=["MACS2/", numpy_get_include()]),
        Extension(
            "MACS2.Statistics",
            ["MACS2/Statistics.c", "MACS2/cStatistics.c"],
            libraries=["m"],
            include_dirs=["MACS2/", numpy_get_include()],
        ),
    ]

    setup(
        name="MACS2",
        version="2.1.0.20140616",
        description="Model Based Analysis for ChIP-Seq data",
        author="Tao Liu",
        author_email="[email protected]",
        url="http://github.com/taoliu/MACS/",
        package_dir={"MACS2": "MACS2"},
        packages=["MACS2", "MACS2.IO"],  # , 'MACS2.data'],
        # package_data={'MACS2': ['data/*.dat']},
        scripts=["bin/macs2"],
        classifiers=[
            "Development Status :: 4 - Beta",
            "Environment :: Console",
            "Intended Audience :: Developers",
            "Intended Audience :: Science/Research",
            "License :: OSI Approved :: BSD License",
            "Operating System :: MacOS :: MacOS X",
            "Operating System :: POSIX",
            "Topic :: Scientific/Engineering :: Bio-Informatics",
            "Programming Language :: Python",
        ],
        install_requires=[
            "numpy>=1.6",
            #'scipy',
        ],
        cmdclass=command_classes,
        ext_modules=ext_modules,
    )
开发者ID:heidou007,项目名称:MACS,代码行数:59,代码来源:setup.py

示例2: doall

def doall():
	setup(name='HRTime', version='1.0',
		 description = 'a package providing access to the high resolution timer',
		 ext_modules = [Extension('HRTime',
							 sources=['HRTime.c'],
							 )])

	setup(name='rtsched', version='1.0',
		 description = 'a package providing (limited) real-time processing/priority functionality',
		 ext_modules = [Extension('rtsched',
							 sources=['rtsched/rtsched.c'],
							 )])

# these come from the SciPy cookbook:
	setup(name='rebin', version='1.0',
		 description = 'a package providing the rebin "resampling function',
		 py_modules=['rebin'], cmdclass={'build_py':build_py}, )
	setup(name='DataFrame', version='1.0',
		 description = 'a package providing R-like data.frame functionality',
		 py_modules=['DataFrame'], cmdclass={'build_py':build_py} )

# these depend on numpy:
	if has_numpy:
		setup(name='sincos', version='1.0',
			 description = 'a package providing a sincos function',
			 ext_modules = [Extension('sincos',
								 sources=['sincos.c','mips_sincos.c','cephes_sincos.c'],
								 depends=['sse_mathfun/sse_mathfun.h'],
								 include_dirs = [numpy_get_include()],
							 extra_compile_args =['-g','-msse2','-faltivec','-DHAVE_VECLIB','-framework','Accelerate'],
							 extra_link_args =['-g','-msse2','-faltivec','-framework','Accelerate']
							 )])

		setup(name='rjvbFilt', version='1.0',
			 description = 'a package providing some filtring functions',
			 ext_modules = [Extension('rjvbFilt',
								 sources=['rjvbFilters.cpp','rjvbFilt.c'],
								 depends=['ParsedSequence.h','rjvbFilters.c','rjvbFilters.h'],
								 include_dirs = [numpy_get_include()],
								 extra_compile_args =['-g','-msse2','-faltivec','-framework','macstl','-UNDEBUG'],
								 extra_link_args =['-g','-msse2','-faltivec']
									 )])

		setup(name='fmadd', version='1.0',
			 description = 'a package providing an fmadd function',
			 ext_modules = [Extension('fmadd',
								 sources=['fmadd.cpp'],
								 depends=['fmadd.c'],
							 extra_compile_args =['-g','-msse2','-faltivec','-UNDEBUG'],
								 include_dirs = [numpy_get_include()]
								 )])
开发者ID:RJVB,项目名称:Py_RJVB,代码行数:51,代码来源:setup-vecLib.py

示例3: doall

def doall():
	setup(name='HRTime', version='1.0',
		 description = 'a package providing access to the high resolution timer',
		 ext_modules = [Extension('HRTime',
							 sources=['HRTime.c'],
							 libraries=['rt'],
							 )])

	setup(name='rtsched', version='1.0',
		 description = 'a package providing (limited) real-time processing/priority functionality',
		 ext_modules = [Extension('rtsched',
							 sources=['rtsched/rtsched.c'],
							 )])

# these come from the SciPy cookbook:
	setup(name='rebin', version='1.0',
		 description = 'a package providing the rebin "resampling function',
		 py_modules=['rebin'], cmdclass={'build_py':build_py}, )
	setup(name='DataFrame', version='1.0',
		 description = 'a package providing R-like data.frame functionality',
		 py_modules=['DataFrame'], cmdclass={'build_py':build_py} )

# these depend on numpy:
	setup(name='rjvbFilt', version='1.0',
		 description = 'a package providing some filtring functions',
		 ext_modules = [Extension('rjvbFilt',
							 sources=['rjvbFilt.c','rjvbFilters.c'],
							 depends=['ParsedSequence.h'],
							 include_dirs = [numpy_get_include()],
							 extra_compile_args =['-mfpmath=sse','-msse','-msse2','-msse3','-msse4','-ftree-vectorize']
							 )])

	setup(name='sincos', version='1.0',
		 description = 'a package providing a sincos function',
		 ext_modules = [Extension('sincos',
							 sources=['sincos.c','mips_sincos.c','cephes_sincos.c'],
							 include_dirs = [numpy_get_include()],
							 extra_compile_args =['-mfpmath=sse','-msse','-msse2','-msse3','-msse4','-ftree-vectorize']
							 )])

	setup(name='fmadd', version='1.0',
		 description = 'a package providing an fmadd function',
		 ext_modules = [Extension('fmadd',
							 sources=['fmadd.c'],
							 include_dirs = [numpy_get_include()]
							 )])
开发者ID:RJVB,项目名称:Py_RJVB,代码行数:46,代码来源:setup_linuxX86.py

示例4: main

def main():
    if float(sys.version[:3])<2.7 or float(sys.version[:3])>=2.8:
        sys.stderr.write("CRITICAL: Python version must be 2.7!\n")
        sys.exit(1)

    ext_modules = [Extension("MACS2.cProb", ["MACS2/cProb.c"], libraries=["m"], include_dirs=numpy_include_dir ),
                   Extension("MACS2.IO.cParser",["MACS2/IO/cParser.c"], include_dirs=numpy_include_dir),
                   Extension("MACS2.cPileup", ["MACS2/cPileup.c"], include_dirs=numpy_include_dir ),
                   Extension("MACS2.cArray", ["MACS2/cArray.c"]),                       
                   Extension("MACS2.cPeakModel", ["MACS2/cPeakModel.c"], include_dirs=numpy_include_dir),                   
                   Extension("MACS2.cPeakDetect", ["MACS2/cPeakDetect.c"]),
                   Extension("MACS2.cSignal", ["MACS2/cSignal.c"], include_dirs=numpy_include_dir),
                   Extension("MACS2.IO.cPeakIO", ["MACS2/IO/cPeakIO.c"],),
                   Extension("MACS2.IO.cBedGraphIO", ["MACS2/IO/cBedGraphIO.c"],),                   
                   Extension("MACS2.IO.cFixWidthTrack", ["MACS2/IO/cFixWidthTrack.c"], include_dirs=numpy_include_dir),
                   Extension("MACS2.IO.cPairedEndTrack", ["MACS2/IO/cPairedEndTrack.c"], include_dirs=numpy_include_dir),
                   Extension("MACS2.IO.cBedGraph", ["MACS2/IO/cBedGraph.c"], libraries=["m"]),
                   Extension("MACS2.IO.cScoreTrack", ["MACS2/IO/cScoreTrack.c"], include_dirs=numpy_include_dir ),
                   Extension("MACS2.IO.cCompositeScoreTrack", ["MACS2/IO/cCompositeScoreTrack.c"],),
                   Extension("MACS2.hashtable", ["MACS2/hashtable.c"],
                             include_dirs=["MACS2/",numpy_get_include()]),
                   ]
    
    setup(name="MACS2",
          version="2.0.10.09132012",
          description="Model Based Analysis for ChIP-Seq data",
          author='Tao Liu',
          author_email='[email protected]',
          url='http://github.com/taoliu/MACS/',
          package_dir={'MACS2' : 'MACS2'},
          packages=['MACS2', 'MACS2.IO'],#, 'MACS2.data'],
          #package_data={'MACS2': ['data/*.dat']},          
          scripts=['bin/macs2',
                   ],
          classifiers=[
              'Development Status :: 4 - Beta',
              'Environment :: Console',
              'Intended Audience :: Developers',
              'Intended Audience :: Science/Research',              
              'License :: OSI Approved :: Artistic License',
              'Operating System :: MacOS :: MacOS X',
              'Operating System :: POSIX',
              'Topic :: Scientific/Engineering :: Bio-Informatics',
              'Programming Language :: Python',
              ],
          install_requires=[
              'numpy>=1.6',
              ],
          cmdclass = command_classes,
          ext_modules = ext_modules
          )
开发者ID:humburg,项目名称:MACS,代码行数:51,代码来源:setup.py

示例5: main

@status:  beta
@version: $Revision$
@author:  Tao Liu
@contact: [email protected]
"""

import os
import sys
from distutils.core import setup, Extension

# Use build_ext from Cython if found
command_classes = {}

try: 
    from numpy import get_include as numpy_get_include 
    numpy_include_dir = [numpy_get_include()] 
except: 
    numpy_include_dir = []
    sys.stderr.write("CRITICAL:Numpy must be installed!\n")
    sys.exit(1)

def main():
    if float(sys.version[:3])<2.7 or float(sys.version[:3])>=2.8:
        sys.stderr.write("CRITICAL: Python version must be 2.7!\n")
        sys.exit(1)

    ext_modules = [Extension("MACS2.cProb", ["MACS2/cProb.c"], libraries=["m"], include_dirs=numpy_include_dir ),
                   Extension("MACS2.IO.cParser",["MACS2/IO/cParser.c"], include_dirs=numpy_include_dir),
                   Extension("MACS2.cPileup", ["MACS2/cPileup.c"], include_dirs=numpy_include_dir ),
                   Extension("MACS2.cArray", ["MACS2/cArray.c"]),                       
                   Extension("MACS2.cPeakModel", ["MACS2/cPeakModel.c"], include_dirs=numpy_include_dir),                   
开发者ID:rpique,项目名称:MACS,代码行数:31,代码来源:setup.py

示例6: main

def main():
    if float(sys.version[:3])<2.7 or float(sys.version[:3])>=2.8:
        sys.stderr.write("CRITICAL: Python version must be 2.7!\n")
        sys.exit(1)

    if has_cython:
        ext_modules = [Extension("MACS2.cProb", ["MACS2/cProb.pyx"], libraries=["m"]),
                       Extension("MACS2.IO.cParser",["MACS2/IO/cParser.pyx"]),
                       Extension("MACS2.cPileup", ["MACS2/cPileup.pyx"], include_dirs=numpy_include_dir ),
                       Extension("MACS2.cArray", ["MACS2/cArray.pyx"]),                       
                       Extension("MACS2.cPeakModel", ["MACS2/cPeakModel.pyx"], include_dirs=numpy_include_dir),                   
                       Extension("MACS2.cPeakDetect", ["MACS2/cPeakDetect.pyx"]),
                       Extension("MACS2.IO.cPeakIO", ["MACS2/IO/cPeakIO.pyx"],),
                       Extension("MACS2.IO.cBedGraphIO", ["MACS2/IO/cBedGraphIO.pyx"],),                   
                       Extension("MACS2.IO.cFixWidthTrack", ["MACS2/IO/cFixWidthTrack.pyx"], include_dirs=numpy_include_dir),
                       Extension("MACS2.IO.cBedGraph", ["MACS2/IO/cBedGraph.pyx"], libraries=["m"]),
                       Extension("MACS2.IO.cScoreTrack", ["MACS2/IO/cScoreTrack.pyx"], include_dirs=numpy_include_dir ),
                       Extension("MACS2.IO.cCompositeScoreTrack", ["MACS2/IO/cCompositeScoreTrack.pyx"],),
                       Extension("MACS2.hashtable", ["MACS2/hashtable.pyx"],include_dirs=["MACS2/",numpy_get_include()]),
                       ]
    else:
        ext_modules = [Extension("MACS2.cProb", ["MACS2/cProb.c"], libraries=["m"]),
                       Extension("MACS2.IO.cParser",["MACS2/IO/cParser.c"]),
                       Extension("MACS2.cPileup", ["MACS2/cPileup.c"], include_dirs=numpy_include_dir),
                       Extension("MACS2.cArray", ["MACS2/cArray.c"]),                                              
                       Extension("MACS2.cPeakModel", ["MACS2/cPeakModel.c"], include_dirs=numpy_include_dir),                   
                       Extension("MACS2.cPeakDetect", ["MACS2/cPeakDetect.c"]),
                       Extension("MACS2.IO.cPeakIO", ["MACS2/IO/cPeakIO.c"],),
                       Extension("MACS2.IO.cBedGraphIO", ["MACS2/IO/cBedGraphIO.c"],),                   
                       Extension("MACS2.IO.cFixWidthTrack", ["MACS2/IO/cFixWidthTrack.c"], include_dirs=numpy_include_dir),
                       Extension("MACS2.IO.cBedGraph", ["MACS2/IO/cBedGraph.c"], libraries=["m"]),
                       Extension("MACS2.IO.cScoreTrack", ["MACS2/IO/cScoreTrack.c"], include_dirs=numpy_include_dir),
                       Extension("MACS2.IO.cCompositeScoreTrack", ["MACS2/IO/cCompositeScoreTrack.c"],),
                       Extension("MACS2.hashtable", ["MACS2/hashtable.c"],include_dirs=["MACS2/",numpy_get_include()]),                       
                       ]

    setup(name="MACS",
          version="2.0.10",
          description="Model Based Analysis for ChIP-Seq data",
          author='Tao Liu',
          author_email='[email protected]',
          url='http://github.com/taoliu/MACS/',
          package_dir={'MACS2' : 'MACS2'},
          packages=['MACS2', 'MACS2.IO', 'MACS2.data'],
          package_data={'MACS2': ['data/*.dat']},          
          scripts=['bin/macs2',
                   'bin/MLEPostPoisRatios',
                   'bin/MCMCPostPoisRatios',                   
                   ],
          classifiers=[
              'Development Status :: 4 - experimental',
              'Environment :: Console',
              'Intended Audience :: Developers',
              'License :: OSI Approved :: Artistic License',
              'Operating System :: MacOS :: MacOS X',
              'Operating System :: Microsoft :: Windows',
              'Operating System :: POSIX',
              'Programming Language :: Python',
              ],
          cmdclass = command_classes,
          ext_modules = ext_modules
          )
开发者ID:benjschiller,项目名称:MACS,代码行数:62,代码来源:setup_w_cython.py

示例7: GenExtension

def GenExtension(name, pkg, ):
  pyx_src = name.replace('.', '/')
  pyx_src = pyx_src + '.pyx'
  ext_src = pyx_src
  if pkg.found:
    return Extension(name, [ext_src], extra_compile_args = pkg.compile_args, include_dirs = pkg.include_dirs + [numpy_get_include()], library_dirs = pkg.library_dirs, libraries = pkg.libraries)
  else:
    print("Failed to find {}".format(pkg.name))
    return None
开发者ID:jrl-umi3218,项目名称:eigen-qld,代码行数:9,代码来源:setup.in.py

示例8: Copyright

## Copyright (C) 2012 Max-Planck-Society
## Author: Marco Selig

from distutils.core import setup
from distutils.extension import Extension as extension
from Cython.Distutils import build_ext
from numpy import get_include as numpy_get_include

srcs = ["wrapper.pyx",
        "interfacer.cpp"]

libs = ["sharp",
        "fftpack",
        'c_utils']

idirs = [numpy_get_include(),
         "../libsharp-code/c_utils",
         "../libsharp-code/libfftpack",
         "../libsharp-code/libsharp"]

ldirs = ["../libsharp-code/auto/lib"]

exmod = [extension("libsharp_wrapper_gl",
                   srcs,
                   language="c++",
                   include_dirs=idirs,
                   library_dirs=ldirs,
                   libraries=libs)]

setup(name="libsharp_wrapper_gl",
      version="0.1",
开发者ID:zonca,项目名称:libsharp-wrapper,代码行数:31,代码来源:setup.py

示例9: main

def main():
    if float(sys.version[:3])<2.7 or float(sys.version[:3])>=2.8:
        sys.stderr.write("CRITICAL: Python version must be 2.7!\n")
        sys.exit(1)

    # I intend to use -Ofast, however if gcc version < 4.6, this option is unavailable so...
    extra_c_args = ["-w","-O3","-ffast-math"] # for C, -Ofast implies -O3 and -ffast-math

    ext_modules = [Extension("MACS2.Prob", ["MACS2/Prob.c"], libraries=["m"], include_dirs=numpy_include_dir, extra_compile_args=extra_c_args ),
                   Extension("MACS2.IO.Parser",["MACS2/IO/Parser.c"], include_dirs=numpy_include_dir, extra_compile_args=extra_c_args),
                   Extension("MACS2.Pileup", ["MACS2/Pileup.c","MACS2/cPosValCalculation.c"], include_dirs=numpy_include_dir, extra_compile_args=extra_c_args ),
                   Extension("MACS2.PeakModel", ["MACS2/PeakModel.c"], include_dirs=numpy_include_dir, extra_compile_args=extra_c_args),
                   Extension("MACS2.PeakDetect", ["MACS2/PeakDetect.c"], extra_compile_args=extra_c_args),
                   Extension("MACS2.Signal", ["MACS2/Signal.c"], include_dirs=numpy_include_dir, extra_compile_args=extra_c_args),
                   Extension("MACS2.IO.PeakIO", ["MACS2/IO/PeakIO.c"], extra_compile_args=extra_c_args),
                   Extension("MACS2.IO.BedGraphIO", ["MACS2/IO/BedGraphIO.c"], extra_compile_args=extra_c_args),                   
                   Extension("MACS2.IO.FixWidthTrack", ["MACS2/IO/FixWidthTrack.c"], include_dirs=numpy_include_dir, extra_compile_args=extra_c_args),
                   Extension("MACS2.IO.PairedEndTrack", ["MACS2/IO/PairedEndTrack.c"], include_dirs=numpy_include_dir, extra_compile_args=extra_c_args),
                   Extension("MACS2.IO.BedGraph", ["MACS2/IO/BedGraph.c"], libraries=["m"], extra_compile_args=extra_c_args),
                   Extension("MACS2.IO.ScoreTrack", ["MACS2/IO/ScoreTrack.c"], include_dirs=numpy_include_dir, extra_compile_args=extra_c_args ),
                   Extension("MACS2.IO.CallPeakUnit", ["MACS2/IO/CallPeakUnit.c"], include_dirs=numpy_include_dir, extra_compile_args=extra_c_args),
                   Extension("MACS2.hashtable", ["MACS2/hashtable.c"], include_dirs=["MACS2/",numpy_get_include()], extra_compile_args=extra_c_args),
                   Extension("MACS2.Statistics", ["MACS2/Statistics.c", "MACS2/cStatistics.c"], libraries=["m"], include_dirs=["MACS2/",numpy_get_include()], extra_compile_args=extra_c_args),
                   ]
    
    setup(name="MACS2",
          version="2.1.1.20160226",
          description="Model Based Analysis for ChIP-Seq data",
          author='Tao Liu',
          author_email='[email protected]',
          url='http://github.com/taoliu/MACS/',
          package_dir={'MACS2' : 'MACS2'},
          packages=['MACS2', 'MACS2.IO'],#, 'MACS2.data'],
          #package_data={'MACS2': ['data/*.dat']},          
          scripts=['bin/macs2',
                   ],
          classifiers=[
              'Development Status :: 4 - Beta',
              'Environment :: Console',
              'Intended Audience :: Developers',
              'Intended Audience :: Science/Research',              
              'License :: OSI Approved :: BSD License',
              'Operating System :: MacOS :: MacOS X',
              'Operating System :: POSIX',
              'Topic :: Scientific/Engineering :: Bio-Informatics',
              'Programming Language :: Python',
              ],
          install_requires=[
              'numpy>=1.6',
              #'scipy',
              ],
          cmdclass = command_classes,
          ext_modules = ext_modules
          )
开发者ID:Gonzalo-Villarino,项目名称:MACS,代码行数:54,代码来源:setup.py

示例10: type

    extra_compile_args.append('-Wno-shift-negative-value')
    extra_compile_args.append('-Wno-parentheses-equality')
    extra_compile_args.append('-Wno-deprecated-declarations')
else:
    # Remove the "-Wstrict-prototypes" compiler option that swig adds, which isn't valid for C++.
    cfg_vars = sysconfig.get_config_vars()
    for key, value in cfg_vars.items():
        if type(value) == str:
            cfg_vars[key] = value.replace("-Wstrict-prototypes", "")
    extra_compile_args.append('-Wno-maybe-uninitialized')

# the libgip.so module containing all the C++ code
gip_module = Extension(
    name=os.path.join("gippy", "libgip"),
    sources=glob.glob('GIP/*.cpp'),
    include_dirs=['GIP', numpy_get_include()] + gdal_config.include,
    library_dirs=lib_dirs,
    libraries=[
        'pthread'
    ] + gdal_config.libs,
    extra_compile_args=extra_compile_args,
    extra_link_args=extra_link_args
)

# the swig .so modules containing the C++ code that wraps libgip.so
swig_modules = []
for n in ['gippy', 'algorithms']:
    src = os.path.join('gippy', n + '.i')
    cppsrc = os.path.join('gippy', n + '_wrap.cpp')
    src = cppsrc if os.path.exists(cppsrc) else src
    swig_modules.append(
开发者ID:gipit,项目名称:gippy,代码行数:31,代码来源:setup.py

示例11:

from distutils.core import setup
from distutils.extension import Extension
from distutils.sysconfig import get_python_inc
from Cython.Distutils import build_ext
from numpy import get_include as numpy_get_include

ext_modules = [Extension("_regions", ["src/_regions.pyx"], 
                         include_dirs = [numpy_get_include()])]

setup(
    name = '_regions',
    cmdclass = {'build_ext': build_ext},
    ext_modules = ext_modules
)
开发者ID:RyanEggert,项目名称:Research-CollectiveMotion,代码行数:14,代码来源:setup.py

示例12: doall

from distutils.core import setup, Extension
try:
	from numpy import get_include as numpy_get_include
	numpy_includes=numpy_get_include()
	del numpy_get_include
except:
	print("falling back to hardcoded numpy header directory")
	numpy_includes='/usr/lib/python3.2/site-packages/numpy/core/include'

try:
	from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
	from distutils.command.build_py import build_py

def doall():
	setup(name='HRTime', version='1.0',
		 description = 'a package providing access to the high resolution timer',
		 ext_modules = [Extension('HRTime',
							 sources=['HRTime.c'],
							 )])

	setup(name='rtsched', version='1.0',
		 description = 'a package providing (limited) real-time processing/priority functionality',
		 ext_modules = [Extension('rtsched',
							 sources=['rtsched/rtsched.c'],
							 )])

# these come from the SciPy cookbook:
#	setup(name='rebin', version='1.0',
#		 description = 'a package providing the rebin "resampling function',
#		 py_modules=['rebin'], cmdclass={'build_py':build_py}, )
开发者ID:RJVB,项目名称:Py_RJVB,代码行数:31,代码来源:setup_cygwin.py


注:本文中的numpy.numpy_get_include函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。