Beispiel #1
0
def main():
    try:
        import setuptools
    except ImportError:
        import ez_setup
        ez_setup.use_setuptools()
    import setuptools
    setuptools.setup(
        name = "mechanize",
        version = VERSION,
        license = "BSD",  # or ZPL 2.1
        platforms = ["any"],
        classifiers = [c for c in CLASSIFIERS.split("\n") if c],
        install_requires = [],
        zip_safe = True,
        test_suite = "test",
        author = "John J. Lee",
        author_email = "*****@*****.**",
        description = __doc__.split("\n", 1)[0],
        long_description = __doc__.split("\n", 2)[-1],
        url = "http://wwwsearch.sourceforge.net/mechanize/",
        download_url = ("http://wwwsearch.sourceforge.net/mechanize/src/"
                        "mechanize-%s.tar.gz" % VERSION),
        packages = ["mechanize"],
        )
Beispiel #2
0
def import_setuptools():
    try:
        import setuptools
        return setuptools
    except ImportError:
        pass

    import ez_setup
    ez_setup.use_setuptools()
    import setuptools
    return setuptools
Beispiel #3
0
def main():
	import ez_setup
	ez_setup.use_setuptools()

	from setuptools import setup
	args = dict(
		name = 'eurasia',
		version = '3.0.0b1',
		license = 'BSD license',
		description = 'a low-level python web framework',
		author = 'wilhelm shen',
		author_email = 'http://groups.google.com/group/eurasia-users',
		platforms = ['unix', 'linux', 'osx', 'cygwin', 'win32'],
		packages = ('eurasia', ),
		zip_safe = False )

	data_files = []
	os.path.walk('skel', skel_visit, data_files)

	try:
		import stackless
	except ImportError:
		args['install_requires'] = ['py']
		data_files.append(('', (os.path.join('3rd-party', 'pypy', 'lib', 'stackless.py'), )))

	args['data_files']  = data_files
	args['package_dir'] = {'eurasia': os.path.join('src', 'eurasia')}

	args['classifiers'] = [
		'Development Status :: 4 - Beta',
		'Intended Audience :: Developers',
		'License :: OSI Approved :: BSD License',
		'Programming Language :: Python',
		'Topic :: Internet',
		'Topic :: Software Development :: Libraries :: Application Frameworks']

	from distutils.command import install
	if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':
		for scheme in install.INSTALL_SCHEMES.values():
			scheme['data'] = scheme['purelib']

		for fileInfo in data_files:
			fileInfo[0] = '..\\PURELIB\\%s' % fileInfo[0]

	setup(**args)
Beispiel #4
0
def main():
    import ez_setup
    ez_setup.use_setuptools()

    from setuptools import setup
    args = dict(
        name = 'hprose',
        version = '1.4.1',
        description = 'Hprose is a High Performance Remote Object Service Engine.',
        author = 'Ma Bingyao',
        url = 'http://www.hprose.com',
        platforms = 'any',
        packages = ('hprose', ),
        zip_safe = False )

    data_files = []
    os.path.walk('skel', skel_visit, data_files)
    if sys.version_info < (3, 0):args['install_requires'] = ['fpconst']


    args['data_files']  = data_files
    args['package_dir'] = {'hprose': os.path.join('src', 'hprose')}

    args['classifiers'] = [
        'Development Status :: 1 - Stable',
        'Intended Audience :: Developers',
        'Programming Language :: Python',
        'Topic :: Internet',
        'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Software Development :: Object Brokering',
        'Topic :: Software Development :: Libraries :: Remote Procedure Call',
        'Topic :: System :: Distributed Computing']

    from distutils.command import install
    if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':
        for scheme in install.INSTALL_SCHEMES.values():
            scheme['data'] = scheme['purelib']

        for fileInfo in data_files:
            fileInfo[0] = '..\\PURELIB\\%s' % fileInfo[0]

    setup(**args)
Beispiel #5
0
def _import_setuptools():
    """Imports setuptools, either from the system or from bootstrap.

    If the system's setuptools is not found, imports ez_setup from the tools
    directory without the need of converting it to a python package.

    """
    global setup
    import inspect

    try:
        from setuptools import setup
    except ImportError:
        cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(
                os.path.split(inspect.getfile(inspect.currentframe()))[0], "tools")))
        if cmd_subfolder not in sys.path:
            sys.path.insert(0, cmd_subfolder)

        # noinspection PyUnresolvedReferences,PyPackageRequirements
        from ez_setup import use_setuptools
        use_setuptools()
        from setuptools import setup
Beispiel #6
0
import os
import sys
import shutil

# fix Python issue 15881 (on Python <2.7.5)
try:
    import multiprocessing
except ImportError:
    pass

# Ensure we use a recent enough version of setuptools: CentOS7 still
# ships with 0.9.8!  There has been some instability in the support
# for PEP-496 environment markers recently, but Setuptools 20.6.8
# seems to have restored full support for them.  See also issue #249.
from ez_setup import use_setuptools
use_setuptools(version='20.6.8')

from setuptools.command import sdist


## auxiliary functions
#
def read_whole_file(path):
    """
    Return file contents as a string.
    """
    with open(path, 'r') as stream:
        return stream.read()

def read_file_lines(path):
    """
Beispiel #7
0
from distutils.core import setup, Extension

import os, glob, numpy, sys,subprocess
if 'upload' in sys.argv or 'register' in sys.argv:
    from ez_setup import use_setuptools; use_setuptools()
    from setuptools import setup, Extension

print "Generating src/__version__.py: ",
__version__ = open('VERSION').read().strip()
print __version__
open('src/__version__.py','w').write('__version__="%s"'%__version__)

#read the latest git status out to an installed file
try:
#    gitbranch = subprocess.check_output('git symbolic-ref -q HEAD',shell=True, cwd='.').strip().split('/')[-1]
    gitbranch = os.popen('git symbolic-ref -q HEAD').read().strip()
    print "Generating src/__branch__.py"
#    gitlog = subprocess.check_output('git log -n1 --pretty="%h%n%s%n--%n%an%n%ae%n%ai"',shell=True, cwd='.').strip()
    gitlog = os.popen('git log -n1 --pretty="%h%n%s%n--%n%an%n%ae%n%ai"').read().strip()
    print "Generating src/__gitlog__.py."
    print gitlog
except:
    gitbranch = "unknown branch"
    gitlog = "git log not found"
open('src/__branch__.py','w').write('__branch__ = \"%s\"'%gitbranch)
open('src/__gitlog__.py','w').write('__gitlog__ = \"\"\"%s\"\"\"'%gitlog)


def get_description():
    lines = [L.strip() for L in open('README').readlines()]
    d_start = None
def main():
    if system == 'Linux':
        # do this first because ez_setup won't import if md5 can't be imported
        res = test_dynload_modules()  
        if '_hashlib' in res or '_md5' in res:
            raise RuntimeError, ("could not import %s compiled modules. this is usually due\n" % len(res) +
                                "to Maya's python being compiled on a different flavor or version\n" +
                                "of linux than you are running.\n" +
                                "to solve this quickly, for each missing library locate\n" +
                                "an existing version and make a symbolic link from the real lib to\n" +
                                "the missing lib")
        
    
        # makefile does not exist, so install will complain of "invalid python install"
        fix_makefile()  
    
    import ez_setup
    ez_setup.use_setuptools()
    from setuptools import setup
    import setuptools.command.easy_install

    orig_script_args = setuptools.command.easy_install.get_script_args
    orig_nt_quote_arg = setuptools.command.easy_install.nt_quote_arg
    
    requirements = ['ply==3.3', 'ipython']
    if isdev():
        requirements.append('BeautifulSoup >3.0')
    
    # overwrite setuptools.command.easy_install.get_script_args
    # it's the only way to change the executable for ipymel
    if system == 'Darwin':

        set_default_script_location()
        
        # on osx we need to use '/usr/bin/env /Applications....mayapy', but setuptools tries to wrap this in quotes
        # because it has a space in it. disable this behavior
        def nt_quote_arg(arg):
            return arg
             
        # use mayapy executable
        def get_script_args(dist, executable=None, wininst=False):
            executable = '/usr/bin/env ' + mayapy_executable
            return orig_script_args(dist, executable, wininst)
    
        setuptools.command.easy_install.nt_quote_arg = nt_quote_arg
        setuptools.command.easy_install.get_script_args = get_script_args
        
    elif system == 'Linux':
        # use mayapy executable
        def get_script_args(dist, executable=None, wininst=False):
            return orig_script_args(dist, mayapy_executable, wininst)
        setuptools.command.easy_install.get_script_args = get_script_args
    else: # windows
        set_default_script_location()

    classifiers = """\
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: New BSD
Programming Language :: Python
Topic :: Games/Entertainment
Topic :: Visual FX/Animation
Operating System :: Microsoft :: Windows
Operating System :: Unix
Operating System :: MacOS
"""
           
    try:
        setup(name='pymel',
              version='1.0.0',
              description='Python in Maya Done Right',
              long_description = """
        PyMEL makes python scripting with Maya work the way it should. Maya's command module is a direct translation
        of mel commands into python commands. The result is a very awkward and unpythonic syntax which does not take 
        advantage of python's strengths -- particulary, a flexible, object-oriented design. PyMEL builds on the cmds 
        module by organizing many of its commands into a class hierarchy, and by customizing them to operate in a more 
        succinct and intuitive way. """,
              author='Chad Dombrova',
              author_email='*****@*****.**',
              url='http://code.google.com/p/pymel/',
              platforms = ['any'],
              license='http://www.opensource.org/licenses/bsd-license.php',
              classifiers=filter(None, classifiers.split("\n")),
              keywords=['maya', 'mel', '3d', 'graphics', 'games', 'VFX', 'CG', 'animation'],
              
              packages=['pymel','pymel.api', 'pymel.core', 'pymel.internal', 'pymel.tools', 'pymel.tools.mel2py', 'pymel.util',
                        'maya', 'maya.app', 'maya.app.startup', 'pymel.cache' ],
              entry_points = {'console_scripts' : 'ipymel = pymel.tools.ipymel:main' },
              package_data={'pymel': ['*.conf' ], 'pymel.cache' : ['*.zip'] },
              install_requires=requirements,
              tests_require=['nose'],
              test_suite = 'nose.collector',
              data_files = get_data_files()
             )
    finally:
        # restore
        setuptools.command.easy_install.get_script_args = orig_script_args
        setuptools.command.easy_install.nt_quote_arg = orig_nt_quote_arg
Beispiel #9
0
#!/usr/bin/env python

# Copyright (c) 2015, Menno Smits
# Released subject to the New BSD License
# Please see http://en.wikipedia.org/wiki/BSD_licenses

import sys
from os import path

# bootstrap setuptools if necessary
from ez_setup import use_setuptools
use_setuptools(version="18.2")

from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

MAJ_MIN = sys.version_info[:2]
IS_PY3 = MAJ_MIN >= (3, 0)
IS_PY_26_OR_OLDER = MAJ_MIN <= (2, 6)
IS_PY_34_OR_NEWER = MAJ_MIN >= (3, 4)

# Read version info
here = path.dirname(__file__)
version_file = path.join(here, 'imapclient', 'version.py')
info = {}
if IS_PY3:
    exec(open(version_file).read(), {}, info)
else:
    execfile(version_file, {}, info)

desc = """\
Beispiel #10
0
import sys
import os
import glob

from ez_setup import use_setuptools
use_setuptools("10.0")
import setuptools

from setuptools import setup, find_packages, Extension

from distutils.version import LooseVersion
if LooseVersion(setuptools.__version__) < LooseVersion('1.1'):
    print ("Version detected:", LooseVersion(setuptools.__version__))
    raise ImportError(
        "umi_tools requires setuptools 1.1 higher")

########################################################################
########################################################################
# collect umi_tools version
sys.path.insert(0, "umi_tools")
import version

version = version.__version__

###############################################################
###############################################################
# Define dependencies 
# Perform a umi_tools Installation

major, minor1, minor2, s, tmp = sys.version_info
Beispiel #11
0
# Copyright (C) 2007-2011 Andrea Francia Trivolzio(PV) Italy

import ez_setup; ez_setup.use_setuptools()
from setuptools import setup

import sys
sys.path.append('.')
from trashcli import trash

setup(
    name = 'trash-cli',
    version = trash.version,
    author = 'Andrea Francia',
    author_email = '*****@*****.**',
    url = 'https://github.com/andreafrancia/trash-cli',
    description = 'Command line interface to FreeDesktop.org Trash.',
    license = 'GPL v2',
    long_description = file("README.rst").read(),
    packages = ['trashcli', 'integration_tests', 'unit_tests'],
    test_suite = "nose.collector",
    entry_points = {
        'console_scripts' : [
            'trash-list    = trashcli.cmds:list',
            'trash         = trashcli.cmds:put',
            'trash-put     = trashcli.cmds:put',
            'restore-trash = trashcli.cmds:restore',
            'trash-empty   = trashcli.cmds:empty'
        ]
    },
    data_files = [('share/man/man1', ['man/man1/trash-empty.1',
                                      'man/man1/trash-list.1',
Beispiel #12
0
#!/usr/bin/env python

# Copyright (c) 2015, Menno Smits
# Released subject to the New BSD License
# Please see http://en.wikipedia.org/wiki/BSD_licenses

import sys
from os import path

# bootstrap setuptools if necessary
from ez_setup import use_setuptools
use_setuptools(version="18.2")

from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

MAJ_MIN_MIC = sys.version_info[:3]
IS_PY3 = MAJ_MIN_MIC >= (3, 0, 0)
IS_PY_26_OR_OLDER = MAJ_MIN_MIC < (2, 7, 0)
IS_PY_278_OR_OLDER = MAJ_MIN_MIC <= (2, 7, 8)
IS_PY_33_OR_OLDER = MAJ_MIN_MIC < (3, 4, 0)
IS_PY_34_OR_NEWER = MAJ_MIN_MIC >= (3, 4, 0)

# Read version info
here = path.dirname(__file__)
version_file = path.join(here, 'imapclient', 'version.py')
info = {}
if IS_PY3:
    exec(open(version_file).read(), {}, info)
else:
    execfile(version_file, {}, info)
Beispiel #13
0
#! /usr/bin/env python

# Copyright (c) 2007-2008 PediaPress GmbH
# See README.txt for additional licensing information.

import sys
import os

try:
    from setuptools import setup
except ImportError:
    import ez_setup
    ez_setup.use_setuptools(version="0.6c1")

from setuptools import setup, Extension
import distutils.util


install_requires=["simplejson>=1.3", "pyparsing>=1.4.11"]
if sys.version_info[:2] < (2,5):
    install_requires.append("wsgiref>=0.1.2")

execfile(distutils.util.convert_path('mwlib/_version.py')) 
# adds 'version' to local namespace

# we will *not* add support for automatic generation of those files as that
# might break with source distributions from pypi

if not os.path.exists(distutils.util.convert_path('mwlib/_mwscan.cc')):
    print "Error: please install re2c from http://re2c.org/ and run make"
    sys.exit(10)
Beispiel #14
0
# Copyright 2013 Cloudera Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import ez_setup
ez_setup.use_setuptools(version='2')

from setuptools import setup, find_packages

def readme():
    with open('README.md', 'r') as ip:
        return ip.read()

setup(
    name='impyla',
    version='0.9.0-dev',
    description='Python client for the Impala distributed query engine',
    long_description=readme(),
    author='Uri Laserson',
    author_email='*****@*****.**',
    url='https://github.com/cloudera/impyla',
Beispiel #15
0
#!/usr/bin/env python

from ez_setup import use_setuptools
import sys
if 'cygwin' in sys.platform.lower():
   min_version='0.6c6'
else:
   min_version='0.6a9'
try:
    use_setuptools(min_version=min_version)
except TypeError:
    # If a non-local ez_setup is already imported, it won't be able to
    # use the min_version kwarg and will bail with TypeError
    use_setuptools()

from setuptools import setup, find_packages, Extension, Feature
from distutils.command.build_ext import build_ext
from distutils.errors import CCompilerError, DistutilsExecError, \
    DistutilsPlatformError

VERSION = '2.0.3'
DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python"
LONG_DESCRIPTION = """
simplejson is a simple, fast, complete, correct and extensible
JSON <http://json.org> encoder and decoder for Python 2.3+.  It is
pure Python code with no dependencies, but includes an optional C
extension for a serious speed boost.

simplejson was formerly known as simple_json, but changed its name to
comply with PEP 8 module naming guidelines.
Beispiel #16
0
from ez_setup import use_setuptools
use_setuptools()  # NOQA
from setuptools import setup, find_packages
from heralding import version as heralding_version

setup(
    name='Heralding',
    version=heralding_version,
    packages=find_packages(exclude=['bin', 'docs', '*.pyc']),
    scripts=['bin/heralding'],
    url='https://github.com/johnnykv/heralding',
    license='GPL 3',
    author='Johnny Vestergaard',
    author_email='*****@*****.**',
    include_package_data=True,
    long_description=open('README.rst').read(),
    description='Credentials catching honeypot.',
    test_suite='nose.collector',
    install_requires=open('requirements.txt').read(),
    tests_require=open('requirements-test.txt').read(),
    package_data={
        "heralding": ["heralding.yml", "wordlist.txt"],
    },
)
Beispiel #17
0
def main():
    if system == 'Linux':
        # do this first because ez_setup won't import if md5 can't be imported
        res = test_dynload_modules()
        if '_hashlib' in res or '_md5' in res:
            raise RuntimeError, (
                "could not import %s compiled modules. this is usually due\n" %
                len(res) +
                "to Maya's python being compiled on a different flavor or version\n"
                + "of linux than you are running.\n" +
                "to solve this quickly, for each missing library locate\n" +
                "an existing version and make a symbolic link from the real lib to\n"
                + "the missing lib")

        # makefile does not exist, so install will complain of "invalid python install"
        fix_makefile()

    import ez_setup
    ez_setup.use_setuptools()
    from setuptools import setup
    import setuptools.command.easy_install

    orig_script_args = setuptools.command.easy_install.get_script_args
    orig_nt_quote_arg = setuptools.command.easy_install.nt_quote_arg

    requirements = ['ipython']
    if isdev():
        requirements.append('BeautifulSoup >3.0')

    # overwrite setuptools.command.easy_install.get_script_args
    # it's the only way to change the executable for ipymel
    if system == 'Darwin':

        set_default_script_location()

        # on osx we need to use '/usr/bin/env /Applications....mayapy', but setuptools tries to wrap this in quotes
        # because it has a space in it. disable this behavior
        def nt_quote_arg(arg):
            return arg

        # use mayapy executable
        def get_script_args(dist, executable=None, wininst=False):
            executable = '/usr/bin/env ' + mayapy_executable
            return orig_script_args(dist, executable, wininst)

        setuptools.command.easy_install.nt_quote_arg = nt_quote_arg
        setuptools.command.easy_install.get_script_args = get_script_args

    elif system == 'Linux':
        # use mayapy executable
        def get_script_args(dist, executable=None, wininst=False):
            return orig_script_args(dist, mayapy_executable, wininst)

        setuptools.command.easy_install.get_script_args = get_script_args
    else:  # windows
        set_default_script_location()

    classifiers = """\
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: New BSD
Programming Language :: Python
Topic :: Games/Entertainment
Topic :: Visual FX/Animation
Operating System :: Microsoft :: Windows
Operating System :: Unix
Operating System :: MacOS
"""

    try:
        setup(name='pymel',
              version='1.0.0',
              description='Python in Maya Done Right',
              long_description="""
        PyMEL makes python scripting with Maya work the way it should. Maya's command module is a direct translation
        of mel commands into python commands. The result is a very awkward and unpythonic syntax which does not take
        advantage of python's strengths -- particulary, a flexible, object-oriented design. PyMEL builds on the cmds
        module by organizing many of its commands into a class hierarchy, and by customizing them to operate in a more
        succinct and intuitive way. """,
              author='Chad Dombrova',
              author_email='*****@*****.**',
              url='http://code.google.com/p/pymel/',
              platforms=['any'],
              license='http://www.opensource.org/licenses/bsd-license.php',
              classifiers=filter(None, classifiers.split("\n")),
              keywords=[
                  'maya', 'mel', '3d', 'graphics', 'games', 'VFX', 'CG',
                  'animation'
              ],
              packages=[
                  'pymel', 'pymel.api', 'pymel.core', 'pymel.internal',
                  'pymel.tools', 'pymel.tools.mel2py', 'pymel.util', 'maya',
                  'maya.app', 'maya.app.startup', 'pymel.cache'
              ],
              entry_points={
                  'console_scripts': 'ipymel = pymel.tools.ipymel:main'
              },
              package_data={
                  'pymel': ['*.conf'],
                  'pymel.cache': ['*.zip']
              },
              install_requires=requirements,
              tests_require=['pytest'],
              setup_requires=['pytest-runner'],
              data_files=get_data_files())
    finally:
        # restore
        setuptools.command.easy_install.get_script_args = orig_script_args
        setuptools.command.easy_install.nt_quote_arg = orig_nt_quote_arg
Beispiel #18
0
from ez_setup import use_setuptools
use_setuptools()  # nopep8

from setuptools import setup, find_packages

with open('README.rst') as file:
    long_description = file.read()

setup(name='activitysim',
      version='0.2.dev1',
      description='Activity-Based Travel Modeling',
      author='contributing authors',
      author_email='*****@*****.**',
      license='BSD-3',
      url='https://github.com/udst/activitysim',
      classifiers=[
          'Development Status :: 4 - Beta',
          'Programming Language :: Python :: 2.7',
          'License :: OSI Approved :: BSD License'
      ],
      long_description=long_description,
      packages=find_packages(exclude=['*.tests']),
      install_requires=[
          'numpy >= 1.8.0', 'openmatrix >= 0.2.4', 'orca >= 1.1',
          'pandas >= 0.18.0', 'pyyaml >= 3.0', 'tables >= 3.3.0',
          'toolz >= 0.7', 'zbox >= 1.2', 'psutil >= 4.1'
      ])
Beispiel #19
0
import os

if not os.path.exists("etk/etk.c_etk.c"):
    try:
        import Cython
    except ImportError:
        raise SystemExit("You need Cython -- http://cython.org/")
    try:
        import Pyrex
    except ImportError:
        raise SystemExit(
            "You need Pyrex -- "
            "http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/")

from ez_setup import use_setuptools
use_setuptools('0.6c9')

from setuptools import setup, find_packages, Extension
from distutils.sysconfig import get_python_inc
from glob import glob
import commands

from Cython.Distutils import build_ext

def pkgconfig(*packages, **kw):
    flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'}
    pkgs = ' '.join(packages)
    cmdline = 'pkg-config --libs --cflags %s' % pkgs

    status, output = commands.getstatusoutput(cmdline)
    if status != 0:
Beispiel #20
0
"""
   Copyright 2008 Glencoe Software, Inc. All rights reserved.
   Use is subject to license terms supplied in LICENSE.txt

"""

import glob
import sys
import os

for tools in glob.glob("../../../lib/repository/setuptools*.egg"):
    if tools.find(".".join(map(str, sys.version_info[0:2]))) > 0:
        sys.path.insert(0, tools)

from ez_setup import use_setuptools
use_setuptools(to_dir='../../../lib/repository')
from setuptools import setup
from omero_version import omero_version as ov

setup(name="OmeroFS",
      version=ov,
      description="OMERO.fs server for watching directories",
      long_description="""\
OMERO.fs server for watching directories"
""",
      author="Colin Blackburn",
      author_email="",
      url="http://trac.openmicroscopy.org.uk/ome/wiki/OmeroFs",
      download_url="http://trac.openmicroscopy.org.uk/ome/wiki/OmeroFs",
      packages=[''],
      test_suite='test.suite')
Beispiel #21
0
def main():
    # Common modules import
    import sys
    import os
    from pymodbus3 import __version__, __author__, __author_email__
    # Import command classes
    try:
        from setup_commands import command_classes
    except ImportError:
        command_classes = {}
    # Import setuptools or install if not exists
    try:
        import setuptools
    except ImportError:
        from ez_setup import use_setuptools
        use_setuptools()
    from setuptools import setup, find_packages
    # Check python version
    if sys.version_info < (3, 0, 0):
        sys.stderr.write('You need python 3.0 or later to run this script!' + os.linesep)
        exit(1)
    # Start installation
    setup(
        name='pymodbus3',
        version=__version__,
        description='A fully featured modbus protocol stack in python',
        long_description=open('README.rst').read(),
        keywords='modbus, twisted, scada, pymodbus',
        author=__author__,
        author_email=__author_email__,
        maintainer=__author__,
        maintainer_email=__author_email__,
        url='http://uzumaxy.github.io/pymodbus3/',
        license='BSD',
        packages=find_packages(exclude=['examples', 'test']),
        exclude_package_data={'': ['examples', 'test', 'tools', 'doc']},
        py_modules = ['ez_setup'],
        platforms=['Linux', 'Mac OS X', 'Win'],
        include_package_data=True,
        zip_safe=True,
        install_requires=[
            'twisted >= 12.2.0',
            'pyserial >= 2.6'
        ],
        extras_require={
            'quality': ['coverage >= 3.5.3', 'nose >= 1.2.1', 'mock >= 1.0.0', 'pep8 >= 1.3.3'],
            'documents': ['sphinx >= 1.1.3'],
            'twisted': ['pyasn1 >= 0.1.4', 'pycrypto >= 2.6'],
        },
        test_suite='nose.collector',
        cmdclass=command_classes,
        classifiers=[
            'Development Status :: 4 - Beta',
            'Environment :: Console',
            'Environment :: X11 Applications :: GTK',
            'Environment :: MacOS X',
            'Environment :: Win32 (MS Windows)',
            'Framework :: Twisted',
            'Intended Audience :: Developers',
            'License :: OSI Approved :: BSD License',
            'Natural Language :: English',
            'Operating System :: MacOS :: MacOS X',
            'Operating System :: Microsoft :: Windows :: Windows 7',
            'Operating System :: Microsoft :: Windows :: Windows NT/2000',
            'Operating System :: Microsoft :: Windows :: Windows Server 2003',
            'Operating System :: Microsoft :: Windows :: Windows Server 2008',
            'Operating System :: Microsoft :: Windows :: Windows Vista',
            'Operating System :: Microsoft :: Windows :: Windows XP',
            'Operating System :: Microsoft',
            'Operating System :: OS Independent',
            'Operating System :: POSIX :: BSD :: FreeBSD',
            'Operating System :: POSIX :: Linux',
            'Operating System :: POSIX :: SunOS/Solaris',
            'Operating System :: POSIX',
            'Operating System :: Unix',
            'Programming Language :: Python :: 3',
            'Programming Language :: Python :: 3.0',
            'Programming Language :: Python :: 3.1',
            'Programming Language :: Python :: 3.2',
            'Programming Language :: Python :: 3.3',
            'Programming Language :: Python :: 3.4',
            'Programming Language :: Python :: Implementation :: CPython',
            'Programming Language :: Python',
            'Topic :: Software Development :: Libraries :: Python Modules',
            'Topic :: Software Development :: Libraries',
            'Topic :: System :: Networking',
            'Topic :: System :: Networking :: Monitoring',
            'Topic :: Utilities'
        ],
    )
Beispiel #22
0
    if not hasattr(pkg_resources, '_distribute'):
        to_reload = True
        raise ImportError
except ImportError:
    ez = {}
    #if USE_DISTRIBUTE:
    #    exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py'
    #                     ).read() in ez
    #    ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True)
    #else:
    #    exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
    #                         ).read() in ez
    #    ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
    ## have downloaded ez_setup.py
    from ez_setup import use_setuptools
    use_setuptools(to_dir=tmpeggs, download_delay=0)

    if to_reload:
        reload(pkg_resources)
    else:
        import pkg_resources

if sys.platform == 'win32':
    def quote(c):
        if ' ' in c:
            return '"%s"' % c # work around spawn lamosity on windows
        else:
            return c
else:
    def quote (c):
        return c
Beispiel #23
0
#!/usr/bin/env python

# pyutil -- utility functions and classes
#
# Author: Zooko Wilcox-O'Hearn
#
# See README.rst for licensing information.

import os, re, sys

try:
    from ez_setup import use_setuptools
except ImportError:
    pass
else:
    use_setuptools(download_delay=0)

from setuptools import find_packages, setup

trove_classifiers=[
    "Development Status :: 5 - Production/Stable",
    "License :: OSI Approved :: GNU General Public License (GPL)",
    "License :: DFSG approved",
    "Intended Audience :: Developers",
    "Operating System :: Microsoft :: Windows",
    "Operating System :: Unix",
    "Operating System :: MacOS :: MacOS X",
    "Operating System :: OS Independent",
    "Natural Language :: English",
    "Programming Language :: Python",
    "Programming Language :: Python :: 2",
Beispiel #24
0
import sys
from distutils.cmd import Command
from distutils.errors import DistutilsOptionError

try:
    from setuptools import setup
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools('28.0')
    from setuptools import setup

classifiers = """\
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Development Status :: 4 - Beta
Natural Language :: English
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Operating System :: MacOS :: MacOS X
Operating System :: Unix
Programming Language :: Python
Programming Language :: Python :: Implementation :: CPython
"""

description = 'Non-blocking MongoDB driver for Tornado or asyncio'

long_description = open("README.rst").read()
Beispiel #25
0
#!/usr/bin/env python

# Copyright (c) 2015, Menno Smits
# Released subject to the New BSD License
# Please see http://en.wikipedia.org/wiki/BSD_licenses

import sys
from os import path

# bootstrap setuptools if necessary
from ez_setup import use_setuptools
use_setuptools(version="18.8.1")

from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

MAJ_MIN = sys.version_info[:2]
IS_PY3 = MAJ_MIN >= (3, 0)
IS_PY_26_OR_OLDER = MAJ_MIN <= (2, 6)
IS_PY_34_OR_NEWER = MAJ_MIN >= (3, 4)

# Read version info
version_file = path.join('imapclient', 'version.py')
info = {}
if IS_PY3:
    exec(open(version_file).read(), {}, info)
else:
    execfile(version_file, {}, info)

desc = """\
IMAPClient is an easy-to-use, Pythonic and complete IMAP client library.
Beispiel #26
0
import sys

# fix Python issue 15881 (on Python <2.7.5)
try:
    import multiprocessing
except ImportError:
    pass

# Ensure we use a recent enough version of setuptools: CentOS7 still ships with
# 0.9.8! Although at the moment ElastiCluster does not make use of any advanced
# feature from `setuptools`, some dependent package requires >=17.1 (at the
# time of this writing) and this version number is likely to increase with time
# -- so just pick a "known good one".
from ez_setup import use_setuptools
use_setuptools(version='21.0.0')


## auxiliary functions
#
def read_whole_file(path):
    """
    Return file contents as a string.
    """
    with open(path, 'r') as stream:
        return stream.read()


## test runner setup
#
# See http://tox.readthedocs.org/en/latest/example/basic.html#integration-with-setuptools-distribute-test-commands
Beispiel #27
0
  def prepare():  # pragma: no cover

    """ Prepare constants and tools for setting up Canteen.

        :returns: ``go``, a closured function that, when called, will begin
          framework setup. """

    try:
      from colorlog import ColoredFormatter
    except ImportError:  # pragma: no cover
      log.debug('No support found for `colorlog`. No colors for u.')
    else:  # pragma: no cover
      log_handler.setFormatter(ColoredFormatter(
        "%(log_color)s[%(levelname)s]%(reset)s %(message)s",
        datefmt=None, reset=True, log_colors={
          'DEBUG':    'cyan',
          'INFO':     'green',
          'WARNING':  'yellow',
          'ERROR':    'red',
          'CRITICAL': 'red'}))


    ## Environment checks
    if not CHECK_SETUPTOOLS():
      log.warning('Setuptoo¡s out of date with version "%s", where'
                  'at least version "%s" is required.'
                  ' Attempting upgrade...' % (SETUPTOOLS_VERSION))
      dependencies.append('setuptools<=%s' % SETUPTOOLS_VERSION)

      try:
        # force update/download
        from ez_setup import use_setuptools
        use_setuptools()

        # reload module and check version
        reload(tools)
        CURRENT_SETUPTOOLS_VERSION = tools.__version__
      except Exception as e:
        log.error('Encountered exception using `ez_setup`...')
        if __debug__:
          traceback.print_exc()

      # fail hard if no suitable options
      if not CHECK_SETUPTOOLS():
        log.error('Failed to find a suitable version of setuptools.'
                  ' Building without support for HAML or RPC.')
        sys.exit(1)

    try:
      import protorpc
    except ImportError:
      log.info('Protobuf not found.'
               ' Adding custom version "%s"...' % PROTOBUF_VERSION)
      dependencies.append('protobuf==%s' % PROTOBUF_VERSION)

    try:
      import hamlish_jinja
    except ImportError:
      log.info('HamlishJinja requested but not found.'
               ' Adding custom version "%s"...' % HAMLISH_VERSION)
      dependencies.append('hamlish_jinja==%s' % HAMLISH_VERSION)

    return lambda: tools.setup(

      # == info == #
      name="canteen",
      version="0.4-alpha",
      description="Minimally complicated, maximally blasphemous"
                  " approach to Python development",

      # == authorship == #
      author="Sam Gammon",
      author_email="*****@*****.**",

      # == flags == #
      zip_safe=True,
      url="https://github.com/sgammon/canteen",

      # == package tree == #
      packages=["canteen",
                "canteen.base",
                "canteen.core",
                "canteen.logic",
                "canteen.logic.http",
                "canteen.model",
                "canteen.model.adapter",
                "canteen.rpc",
                "canteen.rpc.protocol",
                "canteen.runtime",
                "canteen.util"] +

               ["canteen_tests",
                "canteen_tests.test_adapters",
                "canteen_tests.test_base",
                "canteen_tests.test_core",
                "canteen_tests.test_http",
                "canteen_tests.test_model",
                "canteen_tests.test_rpc",
                "canteen_tests.test_util"] if __debug__ else [],

      # == dependencies == #
      install_requires=(["jinja2",
                         "werkzeug",
                         "protorpc"] + dependencies),

      # == test dependencies == #
      tests_require=("nose", "coverage", "fakeredis"),

      # == dependency links == #
      dependency_links=(
        PROTOBUF_GIT % PROTOBUF_VERSION,
        HAMLISH_GIT % HAMLISH_VERSION))
Beispiel #28
0
#!/usr/bin/env python

pythonPackageName = "pymedia"
pythonPackageVersion = "0.0.1"
pythonPackageFullName = pythonPackageName + " " + pythonPackageVersion

# Check minimun Python interpreter version required
import sys
if not hasattr(sys, "hexversion") or sys.hexversion < 0x020701f0:
    sys.stderr.write("Installation FAILED: " + pythonPackageFullName +
                     " requires Python 2.7.1 or better.\n")
    sys.exit(1)

import ez_setup

ez_setup.use_setuptools()

from setuptools import setup, find_packages

setup(name=pythonPackageName,
      version=pythonPackageVersion,
      author='David Andreoletti',
      packages=find_packages(),
      description='Media Core Library')

print "packages==>" + str(find_packages())
 def test_use_setuptools(self):
     self.assertEqual(use_setuptools(), None)
Beispiel #30
0
# may need to work around setuptools bug by providing a fake Pyrex
try:
    import Cython
    sys.path.insert(0, pjoin(os.path.dirname(__file__), "fake_pyrex"))
except ImportError:
    pass

# try bootstrapping setuptools if it doesn't exist
try:
    import pkg_resources
    try:
        pkg_resources.require("setuptools>=0.6c5")
    except pkg_resources.VersionConflict:
        from ez_setup import use_setuptools
        use_setuptools(version="0.6c5")
    from setuptools import setup, Command, find_packages
    _have_setuptools = True
except ImportError:
    # no setuptools installed
    from distutils.core import setup, Command
    _have_setuptools = False

setuptools_kwargs = {}
if sys.version_info[0] >= 3:
    setuptools_kwargs = {
        'use_2to3': True,
        'zip_safe': False,
        #'use_2to3_exclude_fixers': [],
    }
    if not _have_setuptools:
Beispiel #31
0
from ez_setup import use_setuptools
use_setuptools()  # nopep8

from setuptools import setup, find_packages

setup(
    name='activitysim',
    version='0.1dev',
    description='Activity-Based Travel Modeling',
    author='contributing authors',
    author_email='',
    license='BSD-3',
    url='https://github.com/udst/activitysim',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Programming Language :: Python :: 2.7',
        'License :: OSI Approved :: BSD 3-Clause License'
    ],
    packages=find_packages(exclude=['*.tests']),
    install_requires=[
        'numpy >= 1.8.0',
        'openmatrix >= 0.2.2',
        'orca >= 1.1',
        'pandas >= 0.18.0',
        'pyyaml >= 3.0',
        'tables >= 3.1.0',
        'toolz >= 0.7',
        'zbox >= 1.2',
        'psutil >= 4.1'
    ]
)
Beispiel #32
0
#This is just a work-around for a Python2.7 issue causing
#interpreter crash at exit when trying to log an info message.
try:
    import logging
    import multiprocessing
except:
    pass

import sys
py_version = sys.version_info[:2]

try:
    from setuptools import setup, find_packages
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import setup, find_packages

testpkgs = []

dependency_links = []

install_requires = [
    "Flask", "pymongo<=2.8.1", "simplejson", "Werkzeug", "requests", "Pillow",
    "yuicompressor", "fabric", "click"
]

setup(
    name='bombolone',
    version='0.3.4',
    description=
Beispiel #33
0
#! /usr/bin/env python

from ez_setup import use_setuptools # uncomented for dev build
use_setuptools() # uncommented for dev build

from setuptools import setup, find_packages, Extension
from setuptools.command.install import install
from setuptools.command.develop import develop

from distutils.core import setup # needed for dev build
from distutils.extension import Extension

from Cython.Build import cythonize # needed for dev build

import sys

ext_modules = [
    Extension('landlab.components.flexure.cfuncs',
              ['landlab/components/flexure/cfuncs.pyx']),
    Extension('landlab.components.flow_routing.cfuncs',
              ['landlab/components/flow_routing/cfuncs.pyx']),
    Extension('landlab.components.stream_power.cfuncs',
              ['landlab/components/stream_power/cfuncs.pyx'])
]

import numpy as np

from landlab import __version__


def register(**kwds):
from ez_setup import use_setuptools
use_setuptools(version='0.6c7')

from setuptools import setup, find_packages

setup(
    # basic package data
    name="RSReader_chapter06",
    version="0.1",

    # package structure and dependencies
    packages=find_packages('src'),
    package_dir={'': 'src'},
    entry_points={'console_scripts': ['rsreader = rsreader.application:main']},
    install_requires=[
        'docutils == 0.4',
        'nose == 0.10.0',
    ],

    # metadata for upload to PyPI
    author="Jeff Younker",
    author_email="*****@*****.**",
    description="The sample rss reader for agile methods in python",
    license="BSD",
    keywords="continuous integration release engineering scm automation",
    url="http://www.example.com/",  # project home page, if any

    # use nose to run tests
    test_suite='nose.collector',
)
Beispiel #35
0
import os
import sys
import shutil

# fix Python issue 15881 (on Python <2.7.5)
try:
    import multiprocessing
except ImportError:
    pass

# ensure we use a recent enough version of setuptools; CentOS7 still
# ships with 0.9.8!  Setuptools 8.0 is the first release to fully
# implement PEP 440 version specifiers.
from ez_setup import use_setuptools
use_setuptools(version='8.0')

from setuptools.command import sdist
# Newer versions of setuptools do not have `finders` attribute.
if hasattr(sdist, 'finders'):
    del sdist.finders[:]

from setuptools import setup, find_packages


## auxiliary functions
#
def read_whole_file(path):
    """
    Return file contents as a string.
    """
Beispiel #36
0
This is the setup.py script for Eelbrain.

http://docs.python.org/distutils/index.html
https://setuptools.readthedocs.io/en/latest/setuptools.html


About MANIFEST.in:

https://docs.python.org/2/distutils/sourcedist.html#manifest-template

"""
# Setuptools bootstrap module
# http://pythonhosted.org//setuptools/setuptools.html
from ez_setup import use_setuptools
use_setuptools('17')

from distutils.version import StrictVersion
import re
from setuptools import setup, find_packages

from Cython.Build import cythonize
import numpy as np

DESC = """
GitHub: https://github.com/christianbrodbeck/Eelbrain
"""

# version must be in X.X.X format, e.g., "0.0.3dev"
with open('eelbrain/__init__.py') as fid:
    text = fid.read()
#!/usr/bin/env python

import sys
try:
    from ez_setup import use_setuptools
    use_setuptools(version='0.6c11')
except ImportError:
    pass

from setuptools import setup, find_packages, Extension, Feature
from distutils.command.build_ext import build_ext
from distutils.errors import CCompilerError, DistutilsExecError, \
    DistutilsPlatformError

VERSION = '2.1.0'
DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python"
LONG_DESCRIPTION = """
simplejson is a simple, fast, complete, correct and extensible
JSON <http://json.org> encoder and decoder for Python 2.4+.  It is
pure Python code with no dependencies, but includes an optional C
extension for a serious speed boost.

simplejson was formerly known as simple_json, but changed its name to
comply with PEP 8 module naming guidelines.

The encoder may be subclassed to provide serialization in any kind of
situation, without any special support by the objects to be serialized
(somewhat like pickle).

The decoder can handle incoming JSON strings of any specified encoding
(UTF-8 by default).
Beispiel #38
0
"""

import glob
import sys
import os

from ez_setup import use_setuptools
from setuptools import setup, find_packages

ov = os.environ.get("BF_VERSION", "unknown")

for tools in glob.glob("tempTOFIX/setuptools*.egg"):
    if tools.find(".".join(map(str, sys.version_info[0:2]))) > 0:
        sys.path.insert(0, tools)

use_setuptools(to_dir='tempTOFIX')

if os.path.exists("target"):
    packages = find_packages("target")+[""]
else:
    packages = [""]

setup(
    name="xsd-fu",
    version=ov,
    description="Python tools for generating code from the OME specification",
    long_description="""
Python tools for generating code from the OME specification""",
    author="The Open Microscopy Consortium",
    author_email="*****@*****.**",
    url="http://downloads.openmicroscopy.org/bio-formats/",
Beispiel #39
0
#!/usr/bin/env python
#:coding=utf-8:
#:tabSize=2:indentSize=2:noTabs=true:
#:folding=explicit:collapseFolds=1:

from ez_setup import use_setuptools
import sys
if 'cygwin' in sys.platform.lower():
   min_version='0.6c6'
else:
   min_version='0.6a9'
try:
    use_setuptools(min_version=min_version)
except TypeError:
    # If a non-local ez_setup is already imported, it won't be able to
    # use the min_version kwarg and will bail with TypeError
    use_setuptools()

if sys.version < '2.3':
    sys.exit('Error: Python-2.3 or newer is required. Current version:\n %s' % sys.version)

from setuptools import setup, find_packages

VERSION = "0.2a"
DESCRIPTION = "json-schema validator for Python"
LONG_DESCRIPTION = """
jsonschema is a complete, full featured validator for json-schema
adhering to the json-schema proposal second draft.
<http://groups.google.com/group/json-schema/web/json-schema-proposal---second-draft>.

jsonschema is written in pure python and currently has no dependencies.
Beispiel #40
0
    print "scramble(): before scrambling DRMAA_python"
    sys.exit(1)

# change back to the build dir
if os.path.dirname( sys.argv[0] ) != "":
    os.chdir( os.path.dirname( sys.argv[0] ) )

# find setuptools
scramble_lib = os.path.join( "..", "..", "..", "lib" )
sys.path.append( scramble_lib )
try:
    from setuptools import *
    import pkg_resources
except:
    from ez_setup import use_setuptools
    use_setuptools( download_delay=8, to_dir=scramble_lib )
    from setuptools import *
    import pkg_resources

# clean, in case you're running this by hand from a dirty module source dir
for dir in [ "build", "dist", "gridengine" ]:
    if os.access( dir, os.F_OK ):
        print "scramble_it.py: removing dir:", dir
        shutil.rmtree( dir )

# patch
file = "setup.py"
print "scramble(): Patching", file
if not os.access( "%s.orig" %file, os.F_OK ):
    shutil.copyfile( file, "%s.orig" %file )
i = open( "%s.orig" %file, "r" )
Beispiel #41
0
from os import listdir as os_listdir
from os.path import join as path_join
import shutil
import subprocess
import tempfile

from setuptools import setup
from setuptools import Extension
from setuptools.command.build_ext import build_ext as _build_ext
from distutils.spawn import spawn
from distutils.sysconfig import get_config_vars
from distutils.dist import Distribution
from distutils.errors import DistutilsPlatformError

import versioneer
ez_setup.use_setuptools(version="3.4.1")

versioneer.VCS = 'git'
versioneer.versionfile_source = 'khmer/_version.py'
versioneer.versionfile_build = 'khmer/_version.py'
versioneer.tag_prefix = 'v'  # tags are like v1.2.0
versioneer.parentdir_prefix = '.'
CMDCLASS = versioneer.get_cmdclass()

# strip out -Wstrict-prototypes; a hack suggested by
# http://stackoverflow.com/a/9740721
# proper fix coming in http://bugs.python.org/issue1222585
# numpy has a "nicer" fix:
# https://github.com/numpy/numpy/blob/master/numpy/distutils/ccompiler.py
OPT = get_config_vars('OPT')[0]
os.environ['OPT'] = " ".join(
Beispiel #42
0
try:
    from setuptools import setup, find_packages
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import setup, find_packages


setup(
    name='adhocracy',
    version='1.2beta2dev',
    description='Policy drafting and decision-making web platform',
    author='Liquid Democracy e.V.',
    author_email='*****@*****.**',
    url='http://adhocracy.cc/',
    license='GNU Affero General Public License v3',
    classifiers=[
        "License :: OSI Approved :: GNU Affero General Public License v3",
        "Operating System :: OS Independent",
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Other Audience",
        "Programming Language :: Python",
        "Framework :: Pylons",
        "Environment :: Web Environment",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        "Topic :: Software Development :: Libraries :: Python Modules"
    ],
    long_description=open("README.txt").read() + "\n" +
                     open("CHANGES.txt").read() + "\n" +
Beispiel #43
0
sysversion = rawversion.split(".")[0] + rawversion.split(".")[1]
DEFAULT_VERSION = "0.6c11" 


from src.fsa.releasetools.environment import setuputil

setuputil.cleandest()
environment = setuputil.detect_environment()
site.addsitedir(os.path.expanduser(environment['install_dir']))
sys.path.append(os.path.expanduser(environment['install_dir']))
sys.path.append(os.path.expanduser(environment['bin_dir']))
setuputil.configure_python()


from ez_setup import use_setuptools
use_setuptools(version=DEFAULT_VERSION)

from setuptools import setup, find_packages

version = "0.0.2"
setup (
    # basic package data
    name = "releasetools",
    version=version,
    description="Standard Harnes for all python shared utilities",
    long_description="""Python Project for Releasing.""",
    classifiers=[],
    keywords='',
    author='Charles Sibbald',
    author_email='email address',
    url='',
Beispiel #44
0
from os import listdir as os_listdir
from os.path import join as path_join
import shutil
import subprocess
import tempfile

from setuptools import setup
from setuptools import Extension
from setuptools.command.build_ext import build_ext as _build_ext
from distutils.spawn import spawn
from distutils.sysconfig import get_config_vars
from distutils.dist import Distribution
from distutils.errors import DistutilsPlatformError

import versioneer
ez_setup.use_setuptools(version="3.4.1")

CMDCLASS = versioneer.get_cmdclass()

# strip out -Wstrict-prototypes; a hack suggested by
# http://stackoverflow.com/a/9740721
# proper fix coming in http://bugs.python.org/issue1222585
# numpy has a "nicer" fix:
# https://github.com/numpy/numpy/blob/master/numpy/distutils/ccompiler.py
OPT = get_config_vars('OPT')[0]
os.environ['OPT'] = " ".join(flag for flag in OPT.split()
                             if flag != '-Wstrict-prototypes')

# Checking for OpenMP support. Currently clang doesn't work with OpenMP,
# so it needs to be disabled for now.
# This function comes from the yt project:
Beispiel #45
0
ensure_version_file_exists()

# setuptools import
try:
    from setuptools import setup
except ImportError, e:
    s = raw_input(
        "Setuptools is not available. "
        "You can install it yourself while this prompt waits, or "
        "do you want this script to download and install setuptools?"
        " (y/n default: n) "
    )
    if s.lower().startswith("y"):
        from ez_setup import use_setuptools

        use_setuptools(download_delay=0)
    try:
        from setuptools import setup
    except ImportError, e:
        print "Setuptools is still not available. Exiting."
        sys.exit(1)


# base pida packages
base_packages = ["pida", "pida.core", "pida.pidagtk", "pida.services", "pida.editors", "pida.utils"]

# extra utility packages
util_packages = ["pida.utils.vim", "pida.utils.culebra", "pida.utils.vc", "pida.utils.pyflakes"]


def discover_data_files(directory_name, extension):
Beispiel #46
0
#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools("0.7.0")

from setuptools import setup, find_packages

readme = open('README.rst').read()
history = open('CHANGES.rst').read().replace('.. :changelog:', '')

setup(
    name='timetravelpdb',
    version='0.1.0',
    author='Tom Limoncelli',
    author_email='*****@*****.**',
    maintainer='Thomas Grainger',
    maintainer_email = '*****@*****.**',
    keywords = 'time, travel, timetravel, pdb, debug',
    description = 'The Time Travel Python Debugger',
    long_description=readme + '\n\n' + history,
    url='https://github.com/graingert/timetravelpdb',
    package_dir={'': 'src'},
    packages=find_packages('src', exclude="tests"),
    zip_safe=True,
    include_package_data=False,
)
Beispiel #47
0
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages

setup(
    name='brightside',
    description='Provides a command dispatcher and work queue implementation ',
    long_description="""See the Github project page (https://github.com/iancooper/Paramore) for more on Brightside""",
    license='MIT',
    keywords="Brighter Messaging Command Dispatch Retry Circuit Breaker",
    version='0.1',
    author='Ian Cooper',
    author_email='*****@*****.**',
    url='https://github.com/iancooper/Paramore',

    packages=find_packages(),
    install_requires=['ez_setup', 'docopt', 'kombu', 'poll'],
    package_data={
        # If any package contains *.txt or *.rst files, include them:
        '': ['*.txt', '*.rst'],
    },
    entry_points={
        'console_scripts': [
            'run_brightside = core.__main__:run'
        ]
    },
    classifiers=[
        "Development Status :: 2 - Pre-Alpha",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3.4",
        "License :: OSI Approved :: MIT License",
Beispiel #48
0
for tools in glob.glob("../../../lib/repository/setuptools*.egg"):
    if tools.find(".".join(map(str, sys.version_info[0:2]))) > 0:
        sys.path.insert(0, os.path.abspath(tools))

LIB = os.path.join("..", "target", "lib", "python")
sys.path.insert(0, LIB)
OMEROWEB_LIB = os.path.join(LIB, "omeroweb")
sys.path.insert(1, OMEROWEB_LIB)
OMEROPY_LIB = os.path.join("..", "OmeroPy")
sys.path.insert(2, OMEROPY_LIB)

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "omeroweb.settings")

from ez_setup import use_setuptools
use_setuptools(to_dir='../../../lib/repository')
from setuptools import setup
from omero_version import omero_version as ov

setup(name="OmeroWeb",
      version=ov,
      description="OmeroWeb",
      long_description="""\
OmeroWeb is the container of the web clients for OMERO."
""",
      author="Aleksandra Tarkowska",
      author_email="",
      url="http://trac.openmicroscopy.org.uk/ome/wiki/OmeroWeb",
      download_url="http://trac.openmicroscopy.org.uk/ome/wiki/OmeroWeb",
      packages=[''],
      test_suite='test.suite',
Beispiel #49
0
    import Cython

    sys.path.insert(0, os.path.join(os.path.dirname(__file__), "fake_pyrex"))
except ImportError:
    pass

# try bootstrapping setuptools if it doesn't exist
try:
    import pkg_resources

    try:
        pkg_resources.require("setuptools>=0.6c5")
    except pkg_resources.VersionConflict:
        from ez_setup import use_setuptools

        use_setuptools(version="0.6c5")
    from setuptools import setup, Command

    _have_setuptools = True
except ImportError:
    # no setuptools installed
    from distutils.core import setup, Command

    _have_setuptools = False

setuptools_kwargs = {}
if sys.version_info[0] >= 3:

    setuptools_kwargs = {
        "use_2to3": True,
        "zip_safe": False,
Beispiel #50
0
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# -------------------------------------------------------------------------- #

from ez_setup import use_setuptools
use_setuptools(version="3.1")
from setuptools import setup, find_packages
import sys

sys.path.insert(0, './src')
from chistributed import RELEASE

eps = ['chistributed = chistributed.cli:chistributed_cmd.main']

setup(name='chistributed',
      version=RELEASE,
      description='A distributed systems simulator',
      author='University of Chicago, Department of Computer Science',
      author_email='*****@*****.**',
      url='http://chi.cs.uchicago.edu/chistributed/',
      package_dir={'': 'src'},