setup.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. __revision__ = '$Id$'
  2. import os
  3. import sys
  4. import string
  5. version, extra = string.split(sys.version, ' ', 1)
  6. maj, minor = string.split(version, '.', 1)
  7. if not maj[0] >= '2' and minor[0] >= '3':
  8. msg = ("supervisor requires Python 2.3 or better, you are attempting to "
  9. "install it using version %s. Please install with a "
  10. "supported version" % version)
  11. from setuptools import setup, find_packages
  12. here = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
  13. DESC = """\
  14. Supervisor is a client/server system that allows its users to
  15. control a number of processes on UNIX-like operating systems. """
  16. CLASSIFIERS = [
  17. 'Development Status :: 5 - Production/Stable',
  18. 'Environment :: No Input/Output (Daemon)',
  19. 'Intended Audience :: System Administrators',
  20. 'License :: OSI Approved :: Zope Public License',
  21. 'Natural Language :: English',
  22. 'Operating System :: POSIX',
  23. 'Topic :: System :: Boot',
  24. 'Topic :: System :: Systems Administration',
  25. ]
  26. dist = setup(
  27. name = 'supervisor',
  28. version = '2.3b1',
  29. license = 'ZPL 2.0/BSD (see LICENSES.txt)',
  30. url = 'http://www.plope.com/software/supervisor2',
  31. description = "A system for controlling process state under UNIX",
  32. long_description= DESC,
  33. platform = 'UNIX',
  34. classifiers = CLASSIFIERS,
  35. author = "Chris McDonough",
  36. author_email = "chrism@plope.com",
  37. maintainer = "Chris McDonough",
  38. maintainer_email = "chrism@plope.com",
  39. package_dir = {'':'src'},
  40. packages = find_packages(os.path.join(here, 'src')),
  41. scripts=['src/supervisor/supervisord', 'src/supervisor/supervisorctl'],
  42. include_package_data = True,
  43. zip_safe = False,
  44. namespace_packages = ['supervisor'],
  45. )