setup.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 BSD-like license at
  7. # http://www.repoze.org/LICENSE.txt. A copy of the license should accompany
  8. # this distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL
  9. # EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO,
  10. # THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND
  11. # FITNESS FOR A PARTICULAR PURPOSE
  12. #
  13. ##############################################################################
  14. __revision__ = '$Id$'
  15. import urllib
  16. import urllib2
  17. if not hasattr(urllib2, 'splituser'):
  18. # setuptools wants to import this from urllib2 but it's not
  19. # in there in Python 2.3.3, so we just alias it.
  20. urllib2.splituser = urllib.splituser
  21. from ez_setup import use_setuptools
  22. use_setuptools()
  23. import os
  24. import sys
  25. if sys.version < (2, 3):
  26. msg = ("supervisor requires Python 2.3 or better, you are attempting to "
  27. "install it using version %s. Please install with a "
  28. "supported version" % sys.version)
  29. requires = ['meld3 >= 0.6.5']
  30. if sys.version < (2, 5):
  31. # for meld3 (its a distutils package)
  32. requires.append('elementtree')
  33. from setuptools import setup, find_packages
  34. here = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
  35. DESC = """\
  36. Supervisor is a client/server system that allows its users to
  37. control a number of processes on UNIX-like operating systems. """
  38. CLASSIFIERS = [
  39. 'Development Status :: 5 - Production/Stable',
  40. 'Environment :: No Input/Output (Daemon)',
  41. 'Intended Audience :: System Administrators',
  42. 'Natural Language :: English',
  43. 'Operating System :: POSIX',
  44. 'Topic :: System :: Boot',
  45. 'Topic :: System :: Monitoring',
  46. 'Topic :: System :: Systems Administration',
  47. ]
  48. version_txt = os.path.join(here, 'src/supervisor/version.txt')
  49. supervisor_version = open(version_txt).read().strip()
  50. dist = setup(
  51. name = 'supervisor',
  52. version = supervisor_version,
  53. license = 'BSD-derived (http://www.repoze.org/LICENSE.txt)',
  54. url = 'http://supervisord.org/',
  55. download_url = 'http://dist.supervisord.org/',
  56. description = "A system for controlling process state under UNIX",
  57. long_description= DESC,
  58. classifiers = CLASSIFIERS,
  59. author = "Chris McDonough",
  60. author_email = "chrism@plope.com",
  61. maintainer = "Chris McDonough",
  62. maintainer_email = "chrism@plope.com",
  63. package_dir = {'':'src'},
  64. packages = find_packages(os.path.join(here, 'src')),
  65. # put data files in egg 'doc' dir
  66. data_files=[ ('doc', [
  67. 'README.txt',
  68. 'CHANGES.txt',
  69. 'TODO.txt',
  70. 'LICENSES.txt',
  71. 'COPYRIGHT.txt'
  72. ]
  73. )],
  74. install_requires = requires,
  75. extras_require = {'iterparse':['cElementTree >= 1.0.2']},
  76. tests_require = requires,
  77. include_package_data = True,
  78. zip_safe = False,
  79. namespace_packages = ['supervisor'],
  80. test_suite = "supervisor.tests",
  81. entry_points = {
  82. 'supervisor_rpc':['main = supervisor.rpcinterface:make_main_rpcinterface'],
  83. 'console_scripts': [
  84. 'supervisord = supervisor.supervisord:main',
  85. 'supervisorctl = supervisor.supervisorctl:main',
  86. 'echo_supervisord_conf = supervisor.confecho:main',
  87. 'pidproxy = supervisor.pidproxy:main',
  88. ],
  89. },
  90. )