本文整理汇总了Python中numpy.distutils.core.setup函数的典型用法代码示例。如果您正苦于以下问题:Python setup函数的具体用法?Python setup怎么用?Python setup使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setup函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: setup_pepytools
def setup_pepytools():
setup(
name="pepytools",
# metadata
version=__version__,
author=__author__,
author_email=__email__,
license = __license__,
platforms = 'Any',
description = __description__,
long_description = readme(),
keywords = 'polarizable embedding potential',
url = __url__,
# set up package contents
package_dir={'pepytools': 'src'},
packages=['pepytools'],
scripts=['bin/pepy_add', 'bin/pepy_to_csv'],
ext_package = 'pepytools',
ext_modules = [ext_field,
ext_intersect,
ext_qmfields
],
)
开发者ID:steinmanngroup,项目名称:pepytools,代码行数:26,代码来源:setup.py
示例2: setup_package
def setup_package():
write_version_py()
setup(
configuration=configuration,
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
download_url=DOWNLOAD_URL,
license=LICENSE,
keywords=KEYWORDS,
classifiers=CLASSIFIERS,
packages=["Orange",
"Orange.classification",
"Orange.data",
"Orange.feature",
"Orange.misc",
"Orange.testing",
"Orange.tests"],
install_requires=INSTALL_REQUIRES,
**extra_setuptools_args
)
开发者ID:agiz,项目名称:orange3,代码行数:25,代码来源:setup.py
示例3: setup_package
def setup_package():
from numpy.distutils.core import setup
old_path = os.getcwd()
local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
os.chdir(local_path)
sys.path.insert(0,local_path)
# Rewrite the version file everytime
if os.path.exists('numpy/version.py'): os.remove('numpy/version.py')
write_version_py()
try:
setup(
name=NAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
url=URL,
download_url=DOWNLOAD_URL,
license=LICENSE,
classifiers=CLASSIFIERS,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
platforms=PLATFORMS,
configuration=configuration )
finally:
del sys.path[0]
os.chdir(old_path)
return
开发者ID:chadnetzer,项目名称:numpy-gaurdro,代码行数:32,代码来源:setup.py
示例4: setup_package
def setup_package():
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
old_path = os.getcwd()
local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
os.chdir(local_path)
sys.path.insert(0,local_path)
sys.path.insert(0,os.path.join(local_path,'scipy')) # to retrive version
# Rewrite the version file everytime
if os.path.exists('scipy/version.py'):
os.remove('scipy/version.py')
write_version_py()
try:
setup(
name = 'scipy',
maintainer = "SciPy Developers",
maintainer_email = "[email protected]",
description = DOCLINES[0],
long_description = "\n".join(DOCLINES[2:]),
url = "http://www.scipy.org",
download_url = "http://sourceforge.net/project/showfiles.php?group_id=27747&package_id=19531",
license = 'BSD',
classifiers=filter(None, CLASSIFIERS.split('\n')),
platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
configuration=configuration )
finally:
del sys.path[0]
os.chdir(old_path)
return
开发者ID:AmitAronovitch,项目名称:scipy,代码行数:35,代码来源:setupscons.py
示例5: build
def build():
from numpy.distutils.core import setup, Extension
cwd = os.getcwd()
os.chdir(os.path.dirname(__file__))
ext = [Extension('rspectra', ['rspectra.f90'])]
setup(ext_modules=ext, script_args=['build_ext', '--inplace'])
os.chdir(cwd)
开发者ID:gely,项目名称:coseis,代码行数:7,代码来源:dsp.py
示例6: setup_package
def setup_package():
from numpy.distutils.core import setup
old_path = os.getcwd()
local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
os.chdir(local_path)
sys.path.insert(0,local_path)
# Rewrite the version file everytime
if os.path.exists('numpy/version.py'): os.remove('numpy/version.py')
write_version_py()
try:
setup(
name = 'numpy',
maintainer = "NumPy Developers",
maintainer_email = "[email protected]",
description = DOCLINES[0],
long_description = "\n".join(DOCLINES[2:]),
url = "http://numeric.scipy.org",
download_url = "http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103",
license = 'BSD',
classifiers=filter(None, CLASSIFIERS.split('\n')),
author = "Travis E. Oliphant, et.al.",
author_email = "[email protected]",
platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
configuration=configuration )
finally:
del sys.path[0]
os.chdir(old_path)
return
开发者ID:Ademan,项目名称:NumPy-GSoC,代码行数:32,代码来源:setupscons.py
示例7: setup_package
def setup_package():
# rewrite version file
write_version_py()
try:
from numpy.distutils.core import setup
except:
from distutils.core import setup
setup(
name=NAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
url=URL,
version=VERSION,
download_url=DOWNLOAD_URL,
license=LICENSE,
classifiers=CLASSIFIERS,
platforms=PLATFORMS,
configuration=configuration,
scripts=SCRIPTS,
)
开发者ID:nguy,项目名称:artview,代码行数:25,代码来源:setup.py
示例8: setup_package
def setup_package():
if 'setuptools' in sys.modules:
setup_args['install_requires'] = ['numpy']
setup( packages = packages \
, package_dir=package_dir \
, ext_modules=ext_modules \
, **setup_args)
开发者ID:sommaric,项目名称:caid,代码行数:7,代码来源:setup.py
示例9: setup_package
def setup_package():
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
old_path = os.getcwd()
local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
os.chdir(local_path)
sys.path.insert(0,local_path)
sys.path.insert(0,os.path.join(local_path,'scipy')) # to retrive version
try:
setup(
name = 'scipy',
maintainer = "SciPy Developers",
maintainer_email = "[email protected]",
description = "Scientific Algorithms Library for Python",
url = "http://www.scipy.org",
license = 'BSD',
configuration=configuration )
finally:
del sys.path[0]
os.chdir(old_path)
return
开发者ID:mbentz80,项目名称:jzigbeercp,代码行数:25,代码来源:setup.py
示例10: setupPackage
def setupPackage():
# setup package
setup(
name='obspy',
version=get_git_version(),
description=DOCSTRING[1],
long_description="\n".join(DOCSTRING[3:]),
url="http://www.obspy.org",
author='The ObsPy Development Team',
author_email='[email protected]',
license='GNU Lesser General Public License, Version 3 (LGPLv3)',
platforms='OS Independent',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or ' +
'Lesser General Public License (LGPL)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Physics'],
keywords=KEYWORDS,
packages=find_packages(),
namespace_packages=[],
zip_safe=False,
install_requires=INSTALL_REQUIRES,
download_url=("https://github.com/obspy/obspy/zipball/master"
"#egg=obspy=dev"), # this is needed for "easy_install obspy==dev"
include_package_data=True,
entry_points=ENTRY_POINTS,
ext_package='obspy.lib',
configuration=configuration)
开发者ID:jandog8990,项目名称:obspy,代码行数:34,代码来源:setup.py
示例11: setup_package
def setup_package():
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
old_path = os.getcwd()
local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
os.chdir(local_path)
sys.path.insert(0,local_path)
sys.path.insert(0,os.path.join(local_path,'pydec')) # to retrive version
try:
setup(
name = 'pydec',
maintainer = "PyDEC Developers",
maintainer_email = "[email protected]",
description = DOCLINES[0],
long_description = "\n".join(DOCLINES[2:]),
url = "http://www.graphics.cs.uiuc.edu/~wnbell/",
download_url = "http://code.google.com/p/pydec/downloads/list",
license = 'BSD',
classifiers=filter(None, CLASSIFIERS.split('\n')),
platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
configuration=configuration )
finally:
del sys.path[0]
os.chdir(old_path)
return
开发者ID:DongliangGao,项目名称:pydec,代码行数:28,代码来源:setup.py
示例12: setup_package
def setup_package():
from numpy.distutils.core import setup, Extension
from numpy.distutils.misc_util import Configuration
old_path = os.getcwd()
local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
os.chdir(local_path)
sys.path.insert(0,local_path)
sys.path.insert(0,os.path.join(local_path,'pysparse')) # to retrieve version
try:
setup(
name = 'pysparse',
author = "Roman Geus, Dominique Orban, Daniel Wheeler",
author_email = "{hamsel,d-orban,wd15}@sf.net,",
maintainer = "PySparse Developers",
maintainer_email = "{hamsel,d-orban,wd15}@sf.net,",
summary = "Fast sparse matrix library for Python",
description = "Fast sparse matrix library for Python",
long_description = "\n".join(DOCLINES[2:]),
url = "pysparse.sf.net",
download_url = "sf.net/projects/pysparse",
license = 'BSD-style',
classifiers=filter(None, CLASSIFIERS.split('\n')),
platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
install_requires=['numpy>=1.2'],
configuration=configuration,
)
finally:
del sys.path[0]
os.chdir(old_path)
return
开发者ID:r35krag0th,项目名称:pysparse,代码行数:34,代码来源:setup.py
示例13: setup_package
def setup_package():
setup(
install_requires=['numpy > 1.2.5',
'scipy >= 0.7',
'scikits.timeseries >= 0.91'],
namespace_packages=['scikits'],
packages=setuptools.find_packages(),
test_suite = 'nose.collector',
name = distname,
version = version,
description = "Environmental time series manipulation",
long_description = long_description,
license = "BSD",
author = "Pierre GF GERARD-MARCHANT",
author_email = "pierregmcode_AT_gmail_DOT_com",
maintainer = "Pierre GF GERARD-MARCHANT",
maintainer_email = "pierregmcode_AT_gmail_DOT_com",
url = "http://hydroclimpy.sourceforge.net",
classifiers = classifiers,
platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
configuration = configuration,
)
return
开发者ID:dacoex,项目名称:scikits.hydroclimpy,代码行数:25,代码来源:setup.py
示例14: setup_package
def setup_package():
from numpy.distutils.core import setup
old_path = os.getcwd()
local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
src_path = local_path
os.chdir(local_path)
sys.path.insert(0, local_path)
sys.path.insert(0, os.path.join(local_path, 'propack')) # to retrieve version
# Run build
old_path = os.getcwd()
os.chdir(src_path)
sys.path.insert(0, src_path)
try:
setup(
name = 'pypropack',
maintainer = "Jake Vanderplas",
maintainer_email = "[email protected]",
description = "PROPACK python wrappers",
long_description = "PROPACK python wrappers",
license = 'BSD',
configuration=configuration )
finally:
del sys.path[0]
os.chdir(old_path)
return
开发者ID:Muxas,项目名称:pypropack,代码行数:30,代码来源:setup.py
示例15: main
def main():
setup(name = 'glu',
version = get_version(),
author = 'Kevin Jacobs',
author_email = '[email protected]',
maintainer = 'Kevin Jacobs',
maintainer_email = '[email protected]',
platforms = ['any'],
description = 'Genotype Library and Utilities (GLU)',
long_description = ('Genotype Library and Utilities (GLU): Tools for the management of large '
'amounts of SNP genotype data and programs to check its quality and to '
'test for association between SNP markers with continuous or discrete '
'trait phenotypes.'),
classifiers = filter(None, classifiers.split('\n')),
install_requires = requires,
packages = find_packages(),
include_package_data = True,
scripts = ['bin/glu'],
zip_safe = False,
test_suite = 'nose.collector',
ext_modules = [
Extension('glu.lib.genolib.bitarrayc', sources = ['glu/lib/genolib/bitarrayc.c']),
Extension('glu.lib.genolib._genoarray', sources = ['glu/lib/genolib/_genoarray.c',
'glu/lib/genolib/bitarrayc.c',
'glu/lib/genolib/_ibs.c',
'glu/lib/genolib/_ld.c'],
include_dirs = [np.get_include()]),
Extension('glu.modules.struct._admix', sources = ['glu/modules/struct/_admix.c'],
include_dirs = [np.get_include()]),
Extension('glu.modules.ld.pqueue', sources = ['glu/modules/ld/pqueue.c']),
glmnet_config(),
] + cython_modules(),
entry_points={ 'console_scripts' : ['glu = glu.lib.glu_launcher:main'],
} )
开发者ID:gzhang-hli,项目名称:glu-genetics,代码行数:34,代码来源:setup.py
示例16: setup_package
def setup_package():
old_path = os.getcwd()
local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
src_path = local_path
os.chdir(local_path)
sys.path.insert(0, local_path)
sys.path.insert(0, package_path) # to retrieve version
# Run build
old_path = os.getcwd()
os.chdir(src_path)
sys.path.insert(0, src_path)
# Run build
from numpy.distutils.core import setup
try:
setup(
name = 'swe',
requires =['numpy','clawpack'],
package_dir = {'':'src'},
configuration=configuration )
finally:
del sys.path[0]
os.chdir(old_path)
return
开发者ID:nbren12,项目名称:cfd-final,代码行数:28,代码来源:setup.py
示例17: setup_package
def setup_package():
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
old_path = os.getcwd()
local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
os.chdir(local_path)
sys.path.insert(0,local_path)
sys.path.insert(0,os.path.join(local_path,'pykrylov')) # to retrieve version
try:
setup(
name = 'pykrylov',
maintainer = "PyKrylov Developers",
maintainer_email = "[email protected]",
description = DOCLINES[0],
long_description = "\n".join(DOCLINES[2:]),
url = "http://github.com/dpo/pykrylov/tree/master",
download_url = "http://github.com/dpo/pykrylov/tree/master",
license = 'LGPL',
classifiers=filter(None, CLASSIFIERS.split('\n')),
platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
configuration=configuration )
finally:
del sys.path[0]
os.chdir(old_path)
return
开发者ID:dromanov,项目名称:pykrylov,代码行数:29,代码来源:setup.py
示例18: main
def main(**extra_args):
from numpy.distutils.core import setup
setup(
name="nipype",
description="Neuroimaging in Python: Pipelines and Interfaces",
author="Various",
author_email="[email protected]",
url="http://nipy.sourceforge.net/nipype",
long_description=desc,
configuration=configuration,
cmdclass=cmdclass,
requires=[
"numpy (>=1.1)",
"scipy (>=0.7)",
"networkx (>=1.0)",
"ipython (>=0.10)",
"enthought.traits (>=3.2.0)",
"nibabel (>=1.0.0)",
"json",
"twisted",
"zope.interface",
],
**extra_args
)
开发者ID:schwarty,项目名称:nipype,代码行数:25,代码来源:setup.py
示例19: main
def main(**extra_args):
from numpy.distutils.core import setup
from glob import glob
# monkey-patch numpy distutils to use Cython instead of Pyrex
from numpy.distutils.command.build_ext import build_ext
from numpy.distutils.command.build_src import build_src
from build_helpers import generate_a_pyrex_source
build_src.generate_a_pyrex_source = generate_a_pyrex_source
cmdclass = {
'build_src': build_src,
'build_ext': build_ext
}
setup(name=INFO_VARS['NAME'],
maintainer=INFO_VARS['MAINTAINER'],
maintainer_email=INFO_VARS['MAINTAINER_EMAIL'],
description=INFO_VARS['DESCRIPTION'],
long_description=INFO_VARS['LONG_DESCRIPTION'],
url=INFO_VARS['URL'],
download_url=INFO_VARS['DOWNLOAD_URL'],
license=INFO_VARS['LICENSE'],
classifiers=INFO_VARS['CLASSIFIERS'],
author=INFO_VARS['AUTHOR'],
author_email=INFO_VARS['AUTHOR_EMAIL'],
platforms=INFO_VARS['PLATFORMS'],
version=INFO_VARS['VERSION'],
requires=INFO_VARS['REQUIRES'],
configuration = configuration,
cmdclass = cmdclass,
scripts = glob('scripts/*'),
#script_args = ['build_ext', '--inplace'],
**extra_args)
开发者ID:gantians,项目名称:C-PAC,代码行数:33,代码来源:setup.py
示例20: setup_package
def setup_package():
try:
import numpy
except:
raise ImportError("build requires numpy for fortran extensions")
io = open("meta.yaml","r")
meta_file = io.read()
io.close()
meta_file = meta_file.split()
ind = meta_file.index("version:")
version = meta_file[ind+1].replace('"','')
io
metadata = dict(
name='exact_diag_py',
version=version,
maintainer="Phillip Weinberg, Marin Bukov",
maintainer_email="[email protected],mbukov.bu.edu",
download_url="https://github.com/weinbe58/exact_diag_py",
license='MET',
platforms=["Unix"]
)
from numpy.distutils.core import setup
metadata['configuration'] = configuration
setup(**metadata)
开发者ID:zenonofelea,项目名称:exact_diag_py,代码行数:31,代码来源:setup.py
注:本文中的numpy.distutils.core.setup函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论