2005-08-18 20:41:26 +02:00
|
|
|
Common
|
|
|
|
|
2012-03-12 16:40:51 +01:00
|
|
|
First things first: Supybot *requires* at least Python 2.6. There
|
2009-03-22 19:47:51 +01:00
|
|
|
ain't no getting around it. You can get it from http://www.python.org/.
|
2005-01-19 14:14:38 +01:00
|
|
|
|
2005-08-18 20:41:26 +02:00
|
|
|
Recommended Software
|
2005-01-19 14:14:38 +01:00
|
|
|
|
2012-03-12 16:35:54 +01:00
|
|
|
PySQLite -- Version 2.x
|
2005-01-19 14:14:38 +01:00
|
|
|
|
2005-08-18 20:41:26 +02:00
|
|
|
Twisted -- Version 1.2.0 or greater
|
2005-01-19 14:14:38 +01:00
|
|
|
|
2005-08-18 20:41:26 +02:00
|
|
|
For more information and help on how to use Supybot, checkout
|
|
|
|
the documents under docs/ (especially GETTING_STARTED and
|
2009-03-31 13:51:22 +02:00
|
|
|
CONFIGURATION).
|
2005-01-19 14:14:38 +01:00
|
|
|
|
2005-08-18 20:41:26 +02:00
|
|
|
So what do you do? That depends on which operating system you're
|
|
|
|
running. We've split this document up to address the different
|
|
|
|
methods, so find the section for your operating system and continue
|
|
|
|
from there.
|
2005-01-19 14:14:38 +01:00
|
|
|
|
2009-05-18 06:18:02 +02:00
|
|
|
UNIX/Linux/BSD
|
2005-01-19 14:14:38 +01:00
|
|
|
|
2005-08-18 20:41:26 +02:00
|
|
|
If you're installing Python using your distributor's packages, you may
|
2005-01-19 14:14:38 +01:00
|
|
|
need a python-dev package installed, too. If you don't have a
|
2009-05-18 06:18:02 +02:00
|
|
|
'/usr/lib/python2.x/distutils' directory or
|
|
|
|
'/usr/lib/python2.x/config/Makefile' (assuming '/usr/lib/python2.x' is
|
2005-08-31 10:51:38 +02:00
|
|
|
where your Python libs are installed), then you will need a python-dev
|
2005-01-19 14:14:38 +01:00
|
|
|
package.
|
|
|
|
|
2005-08-18 20:41:26 +02:00
|
|
|
After you extract Supybot and cd into the supybot directory just
|
|
|
|
created, you'll want to run (as root) 'python setup.py install'. This
|
2005-01-19 14:14:38 +01:00
|
|
|
will install Supybot globally. If you need to install locally for
|
2005-08-18 20:41:26 +02:00
|
|
|
whatever reason, see the notes at the end of this section. You'll then
|
|
|
|
have several new programs installed where Python scripts are normally
|
|
|
|
installed on your system ('/usr/bin' or '/usr/local/bin' are common on
|
|
|
|
UNIX systems). The two that might be of particular interest to you, the
|
|
|
|
new user, are 'supybot' and 'supybot-wizard'. The former, 'supybot', is
|
|
|
|
the script to run an actual bot; the latter, 'supybot-wizard', is an
|
|
|
|
in-depth wizard that provides a nice user interface for creating a
|
|
|
|
registry file for your bot.
|
|
|
|
|
|
|
|
Local Install
|
2005-01-19 14:14:38 +01:00
|
|
|
|
2012-03-31 19:40:19 +02:00
|
|
|
You can install Supybot in a local directory by using the '--user'
|
2005-08-18 20:41:26 +02:00
|
|
|
option when running 'setup.py'. E.g., 'python setup.py install
|
2012-03-31 19:40:19 +02:00
|
|
|
--user' to install into your home directory. You'll now have
|
|
|
|
a $HOME/.local/bin directory containing Supybot programs ('supybot',
|
|
|
|
'supybot-wizard', etc.) and a $HOME/.local/lib directory containing the
|
2012-04-01 09:29:41 +02:00
|
|
|
Supybot libraries.
|
2005-01-19 14:14:38 +01:00
|
|
|
|
2005-08-18 20:41:26 +02:00
|
|
|
Windows
|
|
|
|
|
|
|
|
**Note**: If you are using an IPV6 connection, you will not be able
|
|
|
|
to run Supybot under Windows (unless Python has fixed things). Current
|
2005-01-19 14:14:38 +01:00
|
|
|
versions of Python for Windows are *not* built with IPV6 support. This
|
|
|
|
isn't expected to be fixed until Python 2.4, at the earliest.
|
|
|
|
|
2005-08-18 20:41:26 +02:00
|
|
|
Now that you have Python installed, open up a command prompt. The
|
2005-01-19 14:14:38 +01:00
|
|
|
easiest way to do this is to open the run dialog (Programs -> run) and
|
2005-08-18 20:41:26 +02:00
|
|
|
type "cmd" (for Windows 2000/XP/2003) or "command" (for Windows 9x). In
|
|
|
|
order to reduce the amount of typing you need to do, I suggest adding
|
|
|
|
Python's directory to your path. If you installed Python using the
|
|
|
|
default settings, you would then do the following in the command prompt
|
|
|
|
(otherwise change the path to match your settings)::
|
|
|
|
|
2009-05-18 06:18:02 +02:00
|
|
|
set PATH=C:\Python2x\;%PATH%
|
2005-08-18 20:41:26 +02:00
|
|
|
|
|
|
|
You should now be able to type 'python' to start the Python
|
|
|
|
interpreter. Exit by pressing CTRL-Z and then Return. Now that that's
|
|
|
|
setup, you'll want to cd into the directory that was created when you
|
|
|
|
unzipped Supybot; I'll assume you unzipped it to 'C:\Supybot' for these
|
|
|
|
instructions. From 'C:\Supybot', run 'python setup.py install'. This
|
2009-05-18 06:18:02 +02:00
|
|
|
will install Supybot under 'C:\Python2x\'. You will now have several new
|
|
|
|
programs installed in 'C:\Python2x\Scripts\'. The two that might be of
|
2005-08-18 20:49:12 +02:00
|
|
|
particular interest to you, the new user, are 'supybot' and 'supybot-wizard'.
|
|
|
|
The former, 'supybot', is the script to run an actual bot; the latter,
|
|
|
|
'supybot-wizard', is an in-depth wizard that provides a nice user interface for
|
|
|
|
creating a registry file for your bot.
|