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


Python core.setup函数代码示例

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


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


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