123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- ##############################################################################
- #
- # Copyright (c) 2007 Agendaless Consulting and Contributors.
- # All Rights Reserved.
- #
- # This software is subject to the provisions of the BSD-like license at
- # http://www.repoze.org/LICENSE.txt. A copy of the license should accompany
- # this distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL
- # EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO,
- # THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND
- # FITNESS FOR A PARTICULAR PURPOSE
- #
- ##############################################################################
- __revision__ = '$Id$'
- import urllib
- import urllib2
- if not hasattr(urllib2, 'splituser'):
- # setuptools wants to import this from urllib2 but it's not
- # in there in Python 2.3.3, so we just alias it.
- urllib2.splituser = urllib.splituser
- import os
- import sys
- if sys.version_info[:2] < (2, 3):
- msg = ("supervisor requires Python 2.3 or better, you are attempting to "
- "install it using version %s. Please install with a "
- "supported version" % sys.version)
- sys.stderr.write(msg)
- sys.exit(1)
- requires = ['meld3 >= 0.6.5']
- if sys.version_info[:2] < (2, 5):
- # for meld3 (it's a distutils package)
- requires.append('elementtree')
- from setuptools import setup, find_packages
- here = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
- DESC = """\
- Supervisor is a client/server system that allows its users to
- control a number of processes on UNIX-like operating systems. """
- CLASSIFIERS = [
- 'Development Status :: 5 - Production/Stable',
- 'Environment :: No Input/Output (Daemon)',
- 'Intended Audience :: System Administrators',
- 'Natural Language :: English',
- 'Operating System :: POSIX',
- 'Topic :: System :: Boot',
- 'Topic :: System :: Monitoring',
- 'Topic :: System :: Systems Administration',
- ]
- version_txt = os.path.join(here, 'src/supervisor/version.txt')
- supervisor_version = open(version_txt).read().strip()
- dist = setup(
- name = 'supervisor',
- version = supervisor_version,
- license = 'BSD-derived (http://www.repoze.org/LICENSE.txt)',
- url = 'http://supervisord.org/',
- download_url = 'http://dist.supervisord.org/',
- description = "A system for controlling process state under UNIX",
- long_description= DESC,
- classifiers = CLASSIFIERS,
- author = "Chris McDonough",
- author_email = "chrism@plope.com",
- maintainer = "Chris McDonough",
- maintainer_email = "chrism@plope.com",
- package_dir = {'':'src'},
- packages = find_packages(os.path.join(here, 'src')),
- # put data files in egg 'doc' dir
- data_files=[ ('doc', [
- 'README.txt',
- 'CHANGES.txt',
- 'TODO.txt',
- 'LICENSES.txt',
- 'COPYRIGHT.txt'
- ]
- )],
- install_requires = requires,
- extras_require = {'iterparse':['cElementTree >= 1.0.2']},
- tests_require = requires + ['mock >= 0.5.0'],
- include_package_data = True,
- zip_safe = False,
- namespace_packages = ['supervisor'],
- test_suite = "supervisor.tests",
- entry_points = {
- 'supervisor_rpc':['main = supervisor.rpcinterface:make_main_rpcinterface'],
- 'console_scripts': [
- 'supervisord = supervisor.supervisord:main',
- 'supervisorctl = supervisor.supervisorctl:main',
- 'echo_supervisord_conf = supervisor.confecho:main',
- 'pidproxy = supervisor.pidproxy:main',
- ],
- },
- )
|