mirror of
https://github.com/Mikaela/Limnoria-doc.git
synced 2024-11-23 04:29:32 +01:00
Update install guide to use Python 3.
This commit is contained in:
parent
f052b6609d
commit
35f5511e6b
@ -19,14 +19,16 @@ a little more of a "foolproof guide".
|
|||||||
Dependencies
|
Dependencies
|
||||||
============
|
============
|
||||||
|
|
||||||
Here's the list of recommended software to run Supybot/Limnoria:
|
The only mandatory dependency is `Python`_ 2.6 or greater. However, it is
|
||||||
|
highly recommended you use Python 3.4 or greater.
|
||||||
|
|
||||||
* Supybot is written in Python, and requires `Python`_
|
You may also install chardet and feedparser, which are used by Limnoria if
|
||||||
2.6 or greater.
|
they are available.
|
||||||
* `Twisted`_ framework 1.2.0 or greater (optional, you probably don't need it).
|
|
||||||
|
The remaining of this guide will assume you have Python 3. If you don't,
|
||||||
|
replace `python3` by `python` in the given commands
|
||||||
|
|
||||||
.. _Python: http://www.python.org/
|
.. _Python: http://www.python.org/
|
||||||
.. _Twisted: http://twistedmatrix.com/
|
|
||||||
|
|
||||||
Installation: UNIX/Linux/BSD
|
Installation: UNIX/Linux/BSD
|
||||||
============================
|
============================
|
||||||
@ -45,8 +47,8 @@ the case, open up a terminal, start python, and run:
|
|||||||
|
|
||||||
import distutils
|
import distutils
|
||||||
|
|
||||||
If it works, you're good to go. Otherwise, install the `python-dev` or
|
If it works, you're good to go. Otherwise, install the `python3-dev` or
|
||||||
`python-devel` package and try again.
|
`python3-devel` package and try again.
|
||||||
|
|
||||||
You may also install "manually" by downloading the source archive from
|
You may also install "manually" by downloading the source archive from
|
||||||
http://python.org, and compiling it. That is outside the scope of this guide,
|
http://python.org, and compiling it. That is outside the scope of this guide,
|
||||||
@ -56,7 +58,7 @@ Install Limnoria
|
|||||||
----------------
|
----------------
|
||||||
|
|
||||||
In the next section of this guide we will use `pip`_, which is a generic
|
In the next section of this guide we will use `pip`_, which is a generic
|
||||||
way of installing Python software
|
way of installing Python software.
|
||||||
|
|
||||||
However, you can use any of these **alternatives**:
|
However, you can use any of these **alternatives**:
|
||||||
|
|
||||||
@ -93,14 +95,14 @@ date BUT LESS TESTED, replace ``master`` with ``testing`` in the commands.*
|
|||||||
First we install Limnoria's optional dependencies (you can skip this
|
First we install Limnoria's optional dependencies (you can skip this
|
||||||
step, but some features won't be available)::
|
step, but some features won't be available)::
|
||||||
|
|
||||||
sudo pip install -r https://raw.githubusercontent.com/ProgVal/Limnoria/master/requirements.txt --upgrade
|
sudo python3 -m pip install -r https://raw.githubusercontent.com/ProgVal/Limnoria/master/requirements.txt --upgrade
|
||||||
|
|
||||||
And then Limnoria itself::
|
And then Limnoria itself::
|
||||||
|
|
||||||
sudo pip install limnoria --upgrade
|
sudo python3 -m pip install limnoria --upgrade
|
||||||
|
|
||||||
If pip gives error immediately instead of doing anything and you have git
|
If you have an error saying `No module named pip`, install `pip` using
|
||||||
installed, try upgrading pip with ``sudo pip install pip --upgrade``.
|
your package manager (the package is usually named `python3-pip`).
|
||||||
|
|
||||||
Local installation (without root access)
|
Local installation (without root access)
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
@ -119,8 +121,8 @@ You might need to add $HOME/.local/bin to your PATH.::
|
|||||||
echo 'PATH="$HOME/.local/bin:$PATH"' >> ~/.$(echo $SHELL|cut -d/ -f3)rc
|
echo 'PATH="$HOME/.local/bin:$PATH"' >> ~/.$(echo $SHELL|cut -d/ -f3)rc
|
||||||
source ~/.$(echo $SHELL|cut -d/ -f3)rc
|
source ~/.$(echo $SHELL|cut -d/ -f3)rc
|
||||||
|
|
||||||
If pip gives error immediately instead of doing anything,
|
If you have an error saying `No module named pip`, install `pip` using this
|
||||||
try upgrading pip with ``pip install pip --upgrade --user``.
|
guide: https://pip.pypa.io/en/stable/installing/
|
||||||
|
|
||||||
Configure Supybot
|
Configure Supybot
|
||||||
-----------------
|
-----------------
|
||||||
@ -205,8 +207,8 @@ Now we are ready to install Limnoria and it's requirements. Open
|
|||||||
``cmd.exe`` as **Administrator** (right click it in the previous place)
|
``cmd.exe`` as **Administrator** (right click it in the previous place)
|
||||||
and run::
|
and run::
|
||||||
|
|
||||||
python -m pip install -r https://raw.githubusercontent.com/ProgVal/Limnoria/master/requirements.txt --upgrade
|
python3 -m pip install -r https://raw.githubusercontent.com/ProgVal/Limnoria/master/requirements.txt --upgrade
|
||||||
python -m pip install limnoria --upgrade
|
python3 -m pip install limnoria --upgrade
|
||||||
|
|
||||||
We are now ready to configure Supybot. Supybot creates quite a few
|
We are now ready to configure Supybot. Supybot creates quite a few
|
||||||
auxiliary files/directories to store its runtime data. It is thus
|
auxiliary files/directories to store its runtime data. It is thus
|
||||||
@ -223,7 +225,7 @@ directory::
|
|||||||
|
|
||||||
and from within it run ``supybot-wizard``::
|
and from within it run ``supybot-wizard``::
|
||||||
|
|
||||||
python C:\Python35\Scripts\supybot-wizard
|
python3 C:\Python35\Scripts\supybot-wizard
|
||||||
|
|
||||||
which will walk you through a series of questions to generate the bot
|
which will walk you through a series of questions to generate the bot
|
||||||
config file.
|
config file.
|
||||||
@ -243,7 +245,7 @@ directories?* question.)
|
|||||||
Now to start the bot, run, still from within the
|
Now to start the bot, run, still from within the
|
||||||
``C:\users\<username>\runbot`` directory::
|
``C:\users\<username>\runbot`` directory::
|
||||||
|
|
||||||
python C:\Python35\Scripts\supybot yourbotnick.conf
|
python3 C:\Python35\Scripts\supybot yourbotnick.conf
|
||||||
|
|
||||||
And watch the magic!
|
And watch the magic!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user