setup.py 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 :: Monitoring',
  40. 'Topic :: System :: Systems Administration',
  41. ]
  42. version_txt = os.path.join(here, 'src/supervisor/version.txt')
  43. supervisor_version = open(version_txt).read().strip()
  44. dist = setup(
  45. name = 'supervisor',
  46. version = supervisor_version,
  47. license = 'ZPL 2.1/others (see LICENSES.txt)',
  48. url = 'http://www.plope.com/software/supervisor2/',
  49. description = "A system for controlling process state under UNIX",
  50. long_description= DESC,
  51. classifiers = CLASSIFIERS,
  52. author = "Chris McDonough",
  53. author_email = "chrism@plope.com",
  54. maintainer = "Chris McDonough",
  55. maintainer_email = "chrism@plope.com",
  56. package_dir = {'':'src'},
  57. packages = find_packages(os.path.join(here, 'src')),
  58. scripts=['src/supervisor/supervisord', 'src/supervisor/supervisorctl'],
  59. install_requires = ['medusa >= 0.5.4', 'meld3 >= 0.6',
  60. 'elementtree >= 1.2.6'],
  61. include_package_data = True,
  62. zip_safe = False,
  63. namespace_packages = ['supervisor'],
  64. test_suite = "supervisor.tests",
  65. )