Limnoria/INSTALL.md
Mikaela Suomalainen 943c7405f5 INSTALL.md: Fix Debian/Ubuntu link.
It seems that markdown converts Debian to lower-case debian and the link goes to upper case Debian which doesn't exist.
2014-05-23 00:44:06 +03:00

6.6 KiB
Raw Blame History

Common

First things first: Supybot requires at least Python 2.6. There isnt any way to get around it. You can get it from Python homepage.

Recommended Software

The following libraries are not needed for running Limnoria, but enable extra features you may want. (Order by decreasing estimated usefulness)

charade enables better encoding handling

pytz and python-dateutil enable additional features of the Time plugin

python-gnupg enables user authentication with GPG

To install them, run

pip install -r requirements.txt

or if you dont have or dont want to use root,

`pip install -r requirements.txt --install-option=--prefix=$HOME/.local

For more information and help on how to use Supybot, checkout the documents under docs/, especially GETTING_STARTED and CONFIGURATION, or on the website

So what do you do? That depends on which operating system youre running. Weve split this document up to address the different methods, so find the section for your operating system and continue from there.

UNIX/Linux/BSD

If you use Debian or Ubuntu, click here

If youre installing Python using your distributors packages, you may need a python-dev or python3-dev package installed, too. If you dont have a /usr/lib/python2.x/distutils directory or /usr/lib/python2.x/config/Makefile or with Python 3 /usr/lib/python3.x/distutils or /usr/lib/python3.x/config/Makefile (assuming /usr/lib/python2.x or /usr/lib/python3.x is where your Python libs are installed), then you will need a python-dev or python3-dev package.

git

First start by git cloning Limnoria and moving to the cloned repository.

git clone git://github.com/ProgVal/Limnoria.git
cd Limnoria

The rest depends on do you have root access and do you want to perform global or local install.

Global install

Run

python setup.py install

python can be replaced with python2 (if your distribution uses Python 3 by default) or python3 if you want to use Python 3 version.

Now you 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

Run

python setup.py install --user

python can be replaced with python2 (if your distribution uses Python 3 by default) or python3 if you want to use Python 3 version.

and you will have new programs installed in ~/.local/bin. 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.

By default you must run the bot with full path to the binary unless you specify $PATH.

Run the following command to fix your PATH. We presume that you use bash and if you dont, you most probably know how to do this with other shell.

echo 'PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Debian

For Debian and other distributions based on it (Ubuntu etc.), there are packages. You can install them with

wget http://builds.progval.net/limnoria/limnoria-master-HEAD.deb
sudo dpkg -i limnoria-master-HEAD.deb

Pip

To install with pip run

sudo pip install limnoria

If you wish to use Python 3 or 2 instead of default of your distribution run pipX where X is either 2 or 3 instead of pip.

Upgrading

git

To upgrade, return to the cloned Limnoria repository and run:

git pull

and then install Limnoria normally. “python setup.py install” doesnt affect config files of the bot any way.

If you dont have the cloned Limnoria repository, clone it again using the installation instructions.

Debian

Simply do the same as before:

wget http://builds.progval.net/limnoria/limnoria-master-HEAD.deb
sudo dpkg -i limnoria-master-HEAD.deb

Pip

To update with pip, add --upgrade to the end of the command:

pip install limnoria --upgrade

Upgrading to Python 3

Upgrading Python3 happens the same way, but if you want to move from 2 to 3 or 3 to 2, you must remove the build/ directory and the executable supybot* files first. The build/ directory is on same directory as this file and supybot* are usually in /usr/local/bin or ~/.local/bin

rm -rf build/
rm /usr/local/bin/supybot*
rm ~/.local/bin/supybot*

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 versions of Python for Windows are not built with IPV6 support. This isnt expected to be fixed until Python 2.4, at the earliest.

Now that you have Python installed, open up a command prompt. The easiest way to do this is to open the run dialog (Programs -> run) and 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 Pythons 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)::

set PATH=C:\Python2x\;%PATH%

You should now be able to type python to start the Python interpreter. Exit by pressing CTRL-Z and then Return. Now that thats setup, youll want to cd into the directory that was created when you unzipped Supybot; Ill assume you unzipped it to C: for these instructions. From C:, run

python setup.py install

This will install Supybot under C:2x'. You will now have several new programs installed in C:2x'. 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.