setup.py 1.8 KB

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