• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python core.setup函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: get_config

def get_config(settings, version_str):
    """
    Adds configuration macros from pyodbc.conf to the compiler settings dictionary.

    If pyodbc.conf does not exist, it will compile and run the pyodbcconf utility.

    This is similar to what autoconf provides, but only uses the infrastructure provided by Python, which is important
    for building on *nix and Windows.
    """
    filename = 'pyodbc.conf'

    # If the file exists, make sure that the version in it is the same as the version we are compiling.  Otherwise we
    # might have added configuration items that aren't there.
    if exists(filename):
        try:
            config = SafeConfigParser()
            config.read(filename)

            if (not config.has_option('define_macros', 'pyodbc_version') or
                config.get('define_macros', 'pyodbc_version') != version_str):
                print 'Recreating pyodbc.conf for new version'
                os.remove(filename)

        except:
            config = None
            # Assume the file has been corrupted.  Delete and recreate
            print 'Unable to read %s.  Recreating' % filename
            os.remove(filename)

    if not exists('pyodbc.conf'):
        # Doesn't exist, so build the pyodbcconf module and use it.

        oldargv = sys.argv
        sys.argv = [ oldargv[0], 'build' ]

        setup(name="pyodbcconf",
              ext_modules = [ Extension('pyodbcconf',
                                        [join('utils', 'pyodbcconf', 'pyodbcconf.cpp')],
                                        **settings) ])

        sys.argv = oldargv

        add_to_path()

        import pyodbcconf
        pyodbcconf.configure()

    config = SafeConfigParser()
    config.read(filename)

    for section in config.sections():
        for key, value in config.items(section):
            settings[section].append( (key.upper(), value) )
开发者ID:wwaites,项目名称:pyodbc,代码行数:53,代码来源:setup.py


示例2: main

def main():

    version_str, version = get_version()

    settings = get_compiler_settings(version_str)

    files = [ abspath(join('src', f)) for f in os.listdir('src') if f.endswith('.cpp') ]

    if exists('MANIFEST'):
        os.remove('MANIFEST')

    setup (name = "pyodbc",
           version = version_str,
           description = "DB API Module for ODBC",

           long_description = ('A Python DB API 2 module for ODBC. This project provides an up-to-date, '
                               'convenient interface to ODBC using native data types like datetime and decimal.'),

           maintainer       = "Michael Kleehammer",
           maintainer_email = "[email protected]",

           ext_modules = [Extension('pyodbc', files, **settings)],

           classifiers = ['Development Status :: 5 - Production/Stable',
                           'Intended Audience :: Developers',
                           'Intended Audience :: System Administrators',
                           'License :: OSI Approved :: MIT License',
                           'Operating System :: Microsoft :: Windows',
                           'Operating System :: POSIX',
                           'Programming Language :: Python',
                           'Topic :: Database',
                          ],

           url = 'http://code.google.com/p/pyodbc',
           download_url = 'http://code.google.com/p/pyodbc/downloads/list',
           cmdclass = { 'version' : VersionCommand,
                        'tags'    : TagsCommand })
开发者ID:wwaites,项目名称:pyodbc,代码行数:37,代码来源:setup.py


示例3: open

with open('gramps_connect/__init__.py', 'rb') as fid:
    for line in fid:
        line = line.decode('utf-8')
        if line.startswith('__version__'):
            version = line.strip().split()[-1][1:-1]
            break

setup(name='gramps_connect',
      version=version,
      description='Gramps webapp for genealogy',
      long_description=open('README.md', 'rb').read().decode('utf-8'),
      author='Doug Blank',
      author_email='[email protected]',
      url="https://github.com/gramps-connect/gramps_connect",
      install_requires=['gramps>=5.0', "tornado"],
      packages=['gramps_connect', 
                'gramps_connect.handlers'],
      include_data_files = True,
      include_package_data=True,
      data_files = [("./gramps_connect/templates", 
                     [
                         "gramps_connect/templates/login.html",
                     ])],
      classifiers=[
          "Environment :: Web Environment",
          "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
          'Programming Language :: Python :: 3',
          "Topic :: Sociology :: Genealogy",
      ]
)
开发者ID:sam-m888,项目名称:gramps_connect,代码行数:30,代码来源:setup.py


示例4: setup

try:
    from setuptools.core import setup
except ImportError:
    from distutils.core import setup

setup(
    name='fap',
    version=__import__('fap').__version__,
    author='Richard Nghiem',
    author_email='[email protected]',
    packages=['fap'],
    url='https://github.com/quanghiem/fap/',
    description='fabric deploy tasks similar to capistrano.'
)
开发者ID:quanghiem,项目名称:fap,代码行数:14,代码来源:setup.py


示例5: setup

# Use setuptools if we can
try:
    from setuptools.core import setup
except ImportError:
    from distutils.core import setup

PACKAGE = 'django-moreviews'
VERSION = '0.1'

setup(
    name=PACKAGE, version=VERSION,
    description="Django class-based views that complement the built-in ones.",
    packages=[ 'moreviews' ],
    license='MIT',
    author='Art Discovery Ltd',
    maintainer='James Aylett',
    maintainer_email='[email protected]',
    url = 'http://tartarus.org/james/computers/django/',
)
开发者ID:artfinder,项目名称:django-moreviews,代码行数:19,代码来源:setup.py


示例6: setup

import os
import sys

try:
    from setuptools.core import setup
except ImportError:
    from distutils.core import setup

__version__ = '0.1'

setup(
    name='nltools',
    version='0.1',
    author='Luke Chang',
    author_email='[email protected]',
    packages=['nltools'],
    package_data={'nltools': ['resources/*']},
    license='LICENSE.txt',
    description='Neurolearn: a web-enabled imaging analysis toolbox',
)

  # url='http://github.com/ljchang/neurolearn',
    # download_url = 'https://github.com/ljchang/neurolearn/tarball/%s' % __version__,
开发者ID:cbentivoglio,项目名称:neurolearn_clone,代码行数:23,代码来源:setup.py


示例7: setup

# Use setuptools if we can
try:
    from setuptools.core import setup
except ImportError:
    from distutils.core import setup

PACKAGE = 'django_auto_sluggable'
VERSION = '0.1'

setup(
    name=PACKAGE, version=VERSION,
    description="Tiny Django app to make working with slugs a little easier.",
    packages=[ 'django_auto_sluggable' ],
    license='MIT',
    author='James Aylett',
    url = 'http://tartarus.org/james/computers/django/',
)
开发者ID:jaylett,项目名称:django_auto_sluggable,代码行数:17,代码来源:setup.py


示例8: setup

VERSION = '0.1.1-af3'

package_data = {
    'render_as': [
        'templates/avoid_clash_with_real_app/*.html',
        'templates/render_as/*.html',
        ],
}

setup(
    name=PACKAGE, version=VERSION,
    description="Template rendering indirector based on object class",
    packages=[
        'render_as',
        'render_as/templatetags',
        ],
    package_data=package_data,
    license='MIT',
    author='James Aylett',
    author_email='[email protected]',
    install_requires=[
        'Django>=1.3',
    ],
    classifiers=[
        'Intended Audience :: Developers',
        'Framework :: Django',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2',
    ],
)
开发者ID:artfinder,项目名称:django-render-as,代码行数:30,代码来源:setup.py


示例9: setup

setup(
    name='rootpy',
    version=__version__,
    description="A pythonic layer on top of the "
                "ROOT framework's PyROOT bindings.",
    long_description=''.join(open('README.rst').readlines()[7:]),
    author='the rootpy developers',
    author_email='[email protected]',
    maintainer='Noel Dawe',
    maintainer_email='[email protected]',
    license='GPLv3',
    url=__url__,
    download_url=__download_url__,
    package_dir=packages,
    packages=packages.keys(),
    extras_require={
        'tables': reqs('tables.txt'),
        'array': reqs('array.txt'),
        'matplotlib': reqs('matplotlib.txt'),
        'roosh': reqs('roosh.txt'),
        'stats': reqs('stats.txt'),
        },
    scripts=scripts,
    entry_points={
        'console_scripts': [
            'root2hdf5 = rootpy.root2hdf5:main',
            'roosh = rootpy.roosh:main',
            ]
        },
    package_data={'': [
        'etc/*',
        'testdata/*.root',
        'testdata/*.txt',
        'tests/test_compiled.cxx',
        ]},
    classifiers=[
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Topic :: Utilities',
        'Operating System :: POSIX :: Linux',
        'Development Status :: 4 - Beta',
        'Intended Audience :: Science/Research',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU General Public License (GPL)'
    ])
开发者ID:suvayu,项目名称:rootpy,代码行数:45,代码来源:setup.py


示例10: setup

#!/usr/bin/python

# Use setuptools if we can
try:
    from setuptools.core import setup
except ImportError:
    from distutils.core import setup
from husl import __version__

setup(
    name="husl",
    version=__version__,
    description="Human-friendly HSL",
    license="MIT",
    author_email="[email protected]",
    url="http://github.com/boronine/pyhusl",
    keywords="color hsl cie cieluv colorwheel",
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Topic :: Software Development",
    ],
    py_modules=["husl"],
    test_suite="tests.husl_test",
)
开发者ID:pombredanne,项目名称:pyhusl,代码行数:27,代码来源:setup.py


示例11: setup

#!/usr/bin/python

# Use setuptools if we can
try:
    from setuptools.core import setup
except ImportError:
    from distutils.core import setup
from pixelpond import __version__, __description__

setup(
    name='django-pixelpond',
    version=__version__,
    description=pixelpond.__doc__
    long_description="""django-pixelpond is a reusable Django application that lets you add a artificial life "pond" to your Django-powered website. It's just for fun.""",
    author='Zach Snow',
    author_email='[email protected]',
    url='http://zachsnow.com/pixelpond/',
    download_url='http://zachsnow.com/pixelpond/download',
    classifiers=[
        "Development Status :: 1 - Planning",
        "Framework :: Django",
        "Intended Audience :: Science/Research",
        "Intended Audience :: Developers",
        "License :: Public Domain",
        "License :: WTFPL+IPA",
        "Operating System :: OS Independent",
        "Topic :: Scientific/Engineering :: Artificial Life",
    ],
    packages=[
        'pixelpond',
    ],
开发者ID:zachsnow,项目名称:django-pixelpond,代码行数:31,代码来源:setup.py


示例12: setup

    from setuptools.core import setup
except ImportError:
    from distutils.core import setup

import os

install_requires = [
    'Django>=1.3',
]

setup(
    name = "django-agenda",
    version = "0.1",
    url = "http://github.com/fitoria/django-agenda",
    licence = 'MIT',
    description = 'Simple, pluggable and flexible agenda application for Django.',
    author = 'Adolfo Fitoria',
    author_email = '[email protected]',
    install_requires = install_requires,
    packages = [],
    include_package_data = True,
    classifiers = [
        'Development Status :: 3 - Alpha',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'Licence :: OSI Approved :: MIT Licence',
        'Programming Languaje :: Python',
        'Topic :: Internet :: WWW/HTTP',
    ]
)
开发者ID:fengyibo,项目名称:django-agenda,代码行数:30,代码来源:setup.py


示例13: setup

# Use setuptools if we can
try:
    from setuptools.core import setup
except ImportError:
    from distutils.core import setup

PACKAGE = 'django_ballads'
VERSION = '0.3'

setup(
    name=PACKAGE, version=VERSION,
    description="Django library for coordinating multi-system transactions (eg database, filesystem, remote API calls).",
    packages=[
        'django_ballads',
    ],
    license='MIT',
    author='James Aylett',
    author_email='[email protected]',
    install_requires=[
        'Django~=1.8.0',
    ],
    url = 'https://github.com/jaylett/django-ballads',
    classifiers = [
        'Intended Audience :: Developers',
        'Framework :: Django',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
    ],
)
开发者ID:jaylett,项目名称:django-ballads,代码行数:30,代码来源:setup.py


示例14: open

with open('metakernel/__init__.py', 'rb') as fid:
    for line in fid:
        line = line.decode('utf-8')
        if line.startswith('__version__'):
            version = line.strip().split()[-1][1:-1]
            break


setup(name='metakernel',
      version=version,
      description='Metakernel for Jupyter',
      long_description=open('README.rst', 'rb').read().decode('utf-8'),
      author='Steven Silvester',
      author_email='[email protected]',
      url="https://github.com/Calysto/metakernel",
      install_requires=['IPython>=3.0'],
      packages=['metakernel', 'metakernel.magics', 'metakernel.utils',
                'metakernel.tests', 'metakernel.magics.tests'],
      include_data_files = True,
      data_files = [("metakernel/images", ["metakernel/images/logo-64x64.png", 
                                           "metakernel/images/logo-32x32.png"])],
      classifiers=[
          'Framework :: IPython',
          'License :: OSI Approved :: BSD License',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 2',
          'Programming Language :: Scheme',
          'Topic :: System :: Shells',
      ]
      )
开发者ID:jendas1,项目名称:metakernel,代码行数:30,代码来源:setup.py


示例15: setup

#!/usr/bin/env python

# Use setuptools if we can
try:
    from setuptools.core import setup
except ImportError:
    from distutils.core import setup
from ecg import __version__

setup(name='dicomecg_convert',
      version=__version__,
      description='Dicom ECG Conversion',
      long_description=open('README.md').read(),
      author='Marco De Benedetto',
      author_email='[email protected]',
      url='https://github.com/marcodebe/dicomecg_convert',
      download_url='https://github.com/marcodebe/dicomecg_convert/downloads',
      license='MIT',
      packages=['ecg', ],
      )
开发者ID:RossiAndrea,项目名称:dicomecg_convert,代码行数:20,代码来源:setup.py


示例16: setup

if svem_flag in sys.argv:
    # Die, setuptools, die.
    sys.argv.remove(svem_flag)

setup(name='calysto',
      version='1.0.6',
      description='Libraries and Languages for Python and IPython',
      long_description="Libraries and Languages for IPython and Python",
      author='Douglas Blank',
      author_email='[email protected]',
      url="https://github.com/Calysto/calysto",
      install_requires=['IPython', 'metakernel', 'svgwrite', 'cairosvg',
                        "ipywidgets"],
      packages=['calysto',
                'calysto.util',
                'calysto.widget',
                'calysto.chart',
                'calysto.simulations',
                'calysto.magics',
                'calysto.ai'],
      data_files = [("calysto/images", ["calysto/images/logo-64x64.png",
                                        "calysto/images/logo-32x32.png"])],
      classifiers = [
          'Framework :: IPython',
          'License :: OSI Approved :: BSD License',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 2',
          'Programming Language :: Scheme',
      ]
)
开发者ID:Calysto,项目名称:calysto,代码行数:30,代码来源:setup.py


示例17: makedirs

    InstallData.set_build_target_path(build_directory)
    InstallData.set_build_target_parameters(parameters)

    Sdist.set_build_target_path(build_directory)
    Sdist.set_build_target_parameters(parameters)

    makedirs(path.join(build_directory, "src", "dNG"))

    _setup = { "name": "pas-database",
               "version": get_version()[1:],
               "description": "Python Application Services",
               "long_description": """"pas_database" is an adapter and abstraction layer for SQLAlchemy.""",
               "author": "direct Netware Group et al.",
               "author_email": "[email protected]",
               "license": "MPL2",
               "url": "https://www.direct-netware.de/redirect?pas;database",

               "platforms": [ "any" ],

               "packages": [ "dNG" ],

               "data_files": [ ( "docs", [ "LICENSE", "README" ]) ],
               "scripts": [ path.join("src", "pas_db_tool.py") ]
             }

    # Override build_py to first run builder.py
    _setup['cmdclass'] = { "build_py": BuildPy, "install_data": InstallData, "sdist": Sdist }

    setup(**_setup)
#
开发者ID:dNG-git,项目名称:pas_database,代码行数:30,代码来源:setup.py


示例18: setup

    distrib = setup(name="matplotlib",
          version=__version__,
          description="Python plotting package",
          author="John D. Hunter, Michael Droettboom",
          author_email="[email protected]",
          url="http://matplotlib.org",
          long_description="""
          matplotlib strives to produce publication quality 2D graphics
          for interactive graphing, scientific publishing, user interface
          development and web application servers targeting multiple user
          interfaces and hardcopy output formats.  There is a 'pylab' mode
          which emulates matlab graphics.
          """,
          license="BSD",
          packages=packages,
          platforms='any',
          py_modules=py_modules,
          ext_modules=ext_modules,
          package_dir=package_dir,
          package_data=package_data,
          classifiers=classifiers,
          download_url="https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-{0}/matplotlib-{0}.tar.gz".format(__version__),

          # List third-party Python packages that we require
          install_requires=install_requires,

          # Automatically 2to3 source on Python 3.x
          use_2to3=True,

          # matplotlib has C/C++ extensions, so it's not zip safe.
          # Telling setuptools this prevents it from doing an automatic
          # check for zip safety.
          zip_safe=False,

          # Install our nose plugin so it will always be found
          entry_points={
              'nose.plugins.0.10': [
                  'KnownFailure = matplotlib.testing.noseclasses:KnownFailure'
                ]
            },
         )
开发者ID:bfroehle,项目名称:matplotlib,代码行数:41,代码来源:setup.py


示例19: setup

setup(
    name=PACKAGE, version=VERSION,
    description="Simple system for testing search results, and using that to measure effectiveness of your current search ranking",
    packages=[ 'searchtester' ],
    license='MIT',
    author='Art Discovery Ltd',
    maintainer='James Aylett',
    maintainer_email='[email protected]',
    install_requires=[
        'lxml',
        'eventlet',
        'unittest2',
    ],
    # url = 'http://code.artfinder.com/projects/searchtester/',
    classifiers=[
        'Intended Audience :: Developers',
        'Environment :: Console',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2',
        'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
        'Topic :: Software Development :: Quality Assurance',
        'Topic :: Software Development :: Testing',
    ],
    entry_points= {
        'console_scripts': [
            'searchtest = searchtester:runtest',
            'scoretest = searchtester:scoretest',
        ],
    },
    test_suite="unittest2.collector",
)
开发者ID:artfinder,项目名称:searchtester,代码行数:31,代码来源:setup.py


示例20: setup

setup(
    name='South',
    version=__version__,
    description='South: Migrations for Django',
    long_description='South is an intelligent database migrations library for the Django web framework. It is database-independent and DVCS-friendly, as well as a whole host of other features.',
    author='Andrew Godwin & Andy McCurdy',
    author_email='[email protected]',
    url='http://south.aeracode.org/',
    download_url='http://south.aeracode.org/wiki/Download',
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Framework :: Django",
        "Intended Audience :: Developers",
        "Intended Audience :: System Administrators",
        "Intended Audience :: System Administrators",
        "License :: OSI Approved :: Apache Software License",
        "Operating System :: OS Independent",
        "Topic :: Software Development",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
    ],
    packages=[
        'south',
        'south.creator',
        'south.db',
        'south.management',
        'south.introspection_plugins',
        'south.hacks',
        'south.migration',
        'south.tests',
        'south.db.sql_server',
        'south.management.commands',
        'south.tests.circular_a',
        'south.tests.emptyapp',
        'south.tests.deps_a',
        'south.tests.fakeapp',
        'south.tests.brokenapp',
        'south.tests.circular_b',
        'south.tests.otherfakeapp',
        'south.tests.deps_c',
        'south.tests.deps_b',
        'south.tests.non_managed',
        'south.tests.circular_a.migrations',
        'south.tests.emptyapp.migrations',
        'south.tests.deps_a.migrations',
        'south.tests.fakeapp.migrations',
        'south.tests.brokenapp.migrations',
        'south.tests.circular_b.migrations',
        'south.tests.otherfakeapp.migrations',
        'south.tests.deps_c.migrations',
        'south.tests.deps_b.migrations',
        'south.tests.non_managed.migrations',
        'south.utils',
    ],
)
开发者ID:10sr,项目名称:hue,代码行数:56,代码来源:setup.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python dist._get_unpatched函数代码示例发布时间:2022-05-27
下一篇:
Python compat.urlunparse函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap