setup.py 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ##############################################################################
  2. #
  3. # Copyright (c) 2007 Agendaless Consulting and Contributors.
  4. # All Rights Reserved.
  5. #
  6. # This software is subject to the provisions of the Zope Public License,
  7. # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
  8. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
  9. # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  10. # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
  11. # FOR A PARTICULAR PURPOSE
  12. #
  13. ##############################################################################
  14. __revision__ = '$Id$'
  15. from ez_setup import use_setuptools
  16. use_setuptools()
  17. import os
  18. import sys
  19. import string
  20. version, extra = string.split(sys.version, ' ', 1)
  21. maj, minor = string.split(version, '.', 1)
  22. if not maj[0] >= '2' and minor[0] >= '3':
  23. msg = ("supervisor requires Python 2.3 or better, you are attempting to "
  24. "install it using version %s. Please install with a "
  25. "supported version" % version)
  26. from setuptools import setup, find_packages
  27. here = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
  28. DESC = """\
  29. Supervisor is a client/server system that allows its users to
  30. control a number of processes on UNIX-like operating systems. """
  31. CLASSIFIERS = [
  32. 'Development Status :: 5 - Production/Stable',
  33. 'Environment :: No Input/Output (Daemon)',
  34. 'Intended Audience :: System Administrators',
  35. 'License :: OSI Approved :: Zope Public License',
  36. 'Natural Language :: English',
  37. 'Operating System :: POSIX',
  38. 'Topic :: System :: Boot',
  39. 'Topic :: System :: Systems Administration',
  40. ]
  41. version_txt = os.path.join(here, 'src/supervisor/version.txt')
  42. supervisor_version = open(version_txt).read().strip()
  43. dist = setup(
  44. name = 'supervisor',
  45. version = suervisor_version,
  46. license = 'ZPL 2.1/others (see LICENSES.txt)',
  47. url = 'http://www.plope.com/software/supervisor2/',
  48. description = "A system for controlling process state under UNIX",
  49. long_description= DESC,
  50. classifiers = CLASSIFIERS,
  51. author = "Chris McDonough",
  52. author_email = "chrism@plope.com",
  53. maintainer = "Chris McDonough",
  54. maintainer_email = "chrism@plope.com",
  55. package_dir = {'':'src'},
  56. packages = find_packages(os.path.join(here, 'src')),
  57. scripts=['src/supervisor/supervisord', 'src/supervisor/supervisorctl'],
  58. install_requires = ['medusa >= 0.5.4', 'meld3 >= 0.6',
  59. 'elementtree >= 1.2.6'],
  60. include_package_data = True,
  61. zip_safe = False,
  62. namespace_packages = ['supervisor'],
  63. test_suite = "supervisor.tests",
  64. )