2013-08-07 19:35:12 +00:00
|
|
|
|
Installing poezio
|
2013-04-08 16:52:35 +00:00
|
|
|
|
=================
|
|
|
|
|
|
2014-02-19 00:20:15 +00:00
|
|
|
|
.. important:: Python 3.3 or better is highly recommended, as we do not
|
|
|
|
|
officially support python 3.1 (although we do try to keep things running),
|
|
|
|
|
and python 3.2 has some unfixable issues.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2013-08-07 19:35:12 +00:00
|
|
|
|
poezio in the GNU/Linux distributions
|
2013-04-08 16:52:35 +00:00
|
|
|
|
-------------------------------------
|
|
|
|
|
|
|
|
|
|
As far as I know, Poezio is available in the following distributions, you just
|
|
|
|
|
have to install it by using the package manager of the distribution, if you're
|
|
|
|
|
using one of these.
|
|
|
|
|
|
2013-08-07 19:35:12 +00:00
|
|
|
|
- *Archlinux*: A poezio_ and poezio-git_ packages are in AUR (use your favourite
|
2013-04-08 16:52:35 +00:00
|
|
|
|
AUR wrapper to install them)
|
|
|
|
|
- *Gentoo*: `Sekh’s overlay`_ contains everything required to build poezio
|
|
|
|
|
(sleekxmpp, dnspython, and poezio)
|
2014-02-18 23:39:51 +00:00
|
|
|
|
- *Fedora*: The poezio package was out of date for a long time in Fedora, but
|
|
|
|
|
now thanks to Casper, there is an `up-to-date package`_ in the repos since F19.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
- *Debian*: Use an other distro. (or make a package, we can provide help :) )
|
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
(If another distribution provides a poezio package, please tell us and we will
|
2013-08-07 19:35:12 +00:00
|
|
|
|
add it to the list)
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-19 00:20:15 +00:00
|
|
|
|
Install from source
|
|
|
|
|
-------------------
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
.. note:: The ``make`` command is always required, because while we could provide
|
|
|
|
|
the compiled file into the archive, the ABI changes and platform variety would
|
|
|
|
|
make it sure that the list of archives is either incomplete or wrong.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
Packagers are of course welcome to compile the file and include it in their
|
|
|
|
|
architecture-specific and fixed-python packages.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
Stable version
|
|
|
|
|
~~~~~~~~~~~~~~
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-19 00:20:15 +00:00
|
|
|
|
`Stable version`_ packages are available in standalone (included dependencies)
|
|
|
|
|
and poezio-only packages (both with prebuilt html doc for convenience).
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
Development version
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
The stable versions of poezio are more like snapshots of states of
|
|
|
|
|
development we deem acceptable. There is always an incentive to
|
|
|
|
|
use the development version, like new features, bug fixes, and more
|
|
|
|
|
support. Therefore, you might want to use the git version.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
git clone git://git.poez.io/poezio
|
|
|
|
|
cd poezio
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
Dependencies
|
|
|
|
|
~~~~~~~~~~~~
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
"""""""
|
|
|
|
|
General
|
|
|
|
|
"""""""
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
Poezio is a python3-only application, so you will first need that, preferably
|
|
|
|
|
in the latest available version, down to 3.2.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
.. note:: Python 3.1 is not officially supported and tested, but should
|
|
|
|
|
work (if it doesn’t, we can fix it if the fix does not require ugly
|
|
|
|
|
modifications). In this case, you will want to install the
|
|
|
|
|
python3-argparse package if it exists, or use pip3/virtualenvs to
|
|
|
|
|
install it.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
You will first need python3-devel, or whatever your distribution named it, along
|
2014-02-19 00:20:15 +00:00
|
|
|
|
with standard utilities such as make. Once you have them, you can run ``make``
|
|
|
|
|
to build the only part of poezio that needs it. If you downloaded the standalone
|
|
|
|
|
stable package, you are finished here and can skip to :ref:`running poezio <poezio-run-label>`.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
Poezio depends on two libraries:
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
- DNSPython_ (the python3 version, often called dnspython3)
|
|
|
|
|
- SleekXMPP_
|
|
|
|
|
|
|
|
|
|
If you do not want to install those libraries, you can skip directly to
|
|
|
|
|
the :ref:`installation part <poezio-install-label>`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"""""""""
|
|
|
|
|
DNSPython
|
|
|
|
|
"""""""""
|
|
|
|
|
|
|
|
|
|
It should be available right now in most software repositories, under the name
|
|
|
|
|
``python3-dnspython`` or ``python3-dnspython3``. Any stable version should fit.
|
|
|
|
|
|
|
|
|
|
For a manual install:
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
wget -O dnspython.tar.gz http://www.dnspython.org/kits3/1.11.1/dnspython3-1.11.1.tar.gz
|
|
|
|
|
tar xvf dnspython.tar.gz
|
|
|
|
|
cd dnspython3-1.11.1
|
|
|
|
|
python3 setup.py build
|
|
|
|
|
python3 setup.py install --user
|
|
|
|
|
|
2014-02-19 00:20:15 +00:00
|
|
|
|
"""""""""
|
2014-02-18 23:39:51 +00:00
|
|
|
|
SleekXMPP
|
2014-02-19 00:20:15 +00:00
|
|
|
|
"""""""""
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
Poezio now depends on SleekXMPP 1.2. if your distribution does not provide it yet,
|
|
|
|
|
you can install it this way:
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
wget https://github.com/fritzy/SleekXMPP/archive/1.2.0.tar.gz
|
|
|
|
|
tar xvf 1.2.0.tar.gz
|
|
|
|
|
SleekXMPP-1.2.0
|
2013-04-08 16:52:35 +00:00
|
|
|
|
python3 setup.py build
|
2014-02-18 23:39:51 +00:00
|
|
|
|
python3 setup.py install --user
|
|
|
|
|
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
.. _poezio-install-label:
|
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
Installation
|
|
|
|
|
~~~~~~~~~~~~
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2013-08-07 19:35:12 +00:00
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
|
|
The update.sh + launch.sh method is the recommended way of using and upgrading
|
2014-02-18 23:39:51 +00:00
|
|
|
|
the devel version of poezio. Installing should only be done with stable versions.
|
2013-08-07 19:35:12 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
|
|
|
|
|
If you skipped the installation of the dependencies and you only want to run
|
|
|
|
|
poezio without a system-wide install, do, in the :file:`poezio` directory:
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
./update.sh
|
|
|
|
|
|
|
|
|
|
If you have git installed, it will download and update locally the
|
2013-08-07 19:35:12 +00:00
|
|
|
|
libraries for you. (and if you don’t have git installed, install it)
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
|
2014-02-19 00:20:15 +00:00
|
|
|
|
If you really want to install it, run as root (or sudo in ubuntu or whatever):
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
2014-02-19 00:20:15 +00:00
|
|
|
|
make install
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-18 23:39:51 +00:00
|
|
|
|
|
2014-02-19 00:20:15 +00:00
|
|
|
|
.. _poezio-run-label:
|
|
|
|
|
|
|
|
|
|
Running
|
|
|
|
|
~~~~~~~
|
|
|
|
|
|
|
|
|
|
If you didn’t install poezio, you can run it from the source directory
|
|
|
|
|
with:
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
2014-02-19 00:20:15 +00:00
|
|
|
|
./launch.sh
|
|
|
|
|
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-02-19 00:20:15 +00:00
|
|
|
|
If you did, it should be in he ``$PATH`` as ``poezio``, so run:
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
poezio
|
|
|
|
|
|
|
|
|
|
.. _Sekh’s overlay: https://github.com/sekh/sekh_overlay
|
|
|
|
|
.. _stable sources: https://dev.louiz.org/project/poezio/download
|
|
|
|
|
.. _SleekXMPP: https://github.com/fritzy/SleekXMPP/
|
2014-02-18 23:39:51 +00:00
|
|
|
|
.. _DNSPython: http://www.dnspython.org/
|
2013-08-07 19:35:12 +00:00
|
|
|
|
.. _poezio: https://aur.archlinux.org/packages/poezio/
|
|
|
|
|
.. _poezio-git: https://aur.archlinux.org/packages/poezio-git/
|
2014-02-18 23:39:51 +00:00
|
|
|
|
.. _up-to-date package: https://apps.fedoraproject.org/packages/poezio
|