Updated for reverend.thomas.

This commit is contained in:
Jeremy Fincher 2004-10-03 09:23:08 +00:00
parent 550bcdad5d
commit 5e4a41533e

View File

@ -45,21 +45,24 @@ import glob
import shutil import shutil
import os.path import os.path
def normalizeWhitespace(s):
return ' '.join(s.split())
try: try:
from distutils.core import setup from distutils.core import setup
from distutils.sysconfig import get_python_lib from distutils.sysconfig import get_python_lib
except ImportError, e: except ImportError, e:
s = ' '.join("""Supybot requires the distutils package to install. This s = normalizeWhitespace("""Supybot requires the distutils package to
package is normally included with Python, but for some unfathomable reason, install. This package is normally included with Python, but for some
many distributions to take it out of standard Python and put it in another unfathomable reason, many distributions to take it out of standard Python
package, usually caled 'python-dev' or python-devel' or something similar. and put it in another package, usually caled 'python-dev' or python-devel'
This is one of the dumbest things a distribution can do, because it means or something similar. This is one of the dumbest things a distribution can
that developers cannot rely on *STANDARD* Python modules to be present on do, because it means that developers cannot rely on *STANDARD* Python
systems of that distribution. Complain to your distribution, and loudly. modules to be present on systems of that distribution. Complain to your
If you how much of our time we've wasted telling people to install what distribution, and loudly. If you how much of our time we've wasted telling
should be included by default with Python you'd understand why we're people to install what should be included by default with Python you'd
unhappy about this. Anyway, to reiterate, install the development package understand why we're unhappy about this. Anyway, to reiterate, install the
for Python that your distribution supplies.""".split()) development package for Python that your distribution supplies.""")
sys.stderr.write(textwrap.fill(s)) sys.stderr.write(textwrap.fill(s))
sys.exit(-1) sys.exit(-1)
@ -89,10 +92,11 @@ setup(
author_email='jemfinch@users.sf.net', author_email='jemfinch@users.sf.net',
download_url='http://www.sf.net/project/showfiles.php?group_id=58965', download_url='http://www.sf.net/project/showfiles.php?group_id=58965',
description='A flexible and extensible Python IRC bot and framework.', description='A flexible and extensible Python IRC bot and framework.',
long_description="""A robust, full-featured Python IRC bot with a clean and long_description=normalizeWhitespace("""A robust, full-featured Python IRC
flexible plugin API. Equipped with a complete ACL system for specifying bot with a clean and flexible plugin API. Equipped with a complete ACL
user permissions with as much as per-command granularity. Batteries are system for specifying user permissions with as much as per-command
included in the form of numerous plugins already written.""", granularity. Batteries are included in the form of numerous plugins
already written."""),
classifiers = [ classifiers = [
'Development Status :: 4 - Beta', 'Development Status :: 4 - Beta',
'Environment :: Console', 'Environment :: Console',
@ -113,12 +117,14 @@ setup(
'supybot.others', 'supybot.others',
'supybot.plugins', 'supybot.plugins',
'supybot.others.dateutil', 'supybot.others.dateutil',
'supybot.others.reverend',
'supybot.others.SOAPpy', 'supybot.others.SOAPpy',
'supybot.others.SOAPpy.wstools',], 'supybot.others.SOAPpy.wstools',],
package_dir={'supybot': 'src', package_dir={'supybot': 'src',
'supybot.others': 'others', 'supybot.others': 'others',
'supybot.plugins': 'plugins', 'supybot.plugins': 'plugins',
'supybot.others.dateutil': 'others/dateutil', 'supybot.others.dateutil': 'others/dateutil',
'supybot.others.reverend': 'others/reverend',
'supybot.others.SOAPpy': 'others/SOAPpy', 'supybot.others.SOAPpy': 'others/SOAPpy',
'supybot.others.SOAPpy.wstools': 'others/SOAPpy/wstools',}, 'supybot.others.SOAPpy.wstools': 'others/SOAPpy/wstools',},
scripts=['scripts/supybot', scripts=['scripts/supybot',