2013-08-07 19:35:12 +00:00
|
|
|
|
Installing poezio
|
2013-04-08 16:52:35 +00:00
|
|
|
|
=================
|
|
|
|
|
|
2014-11-29 17:10:04 +00:00
|
|
|
|
.. warning:: Python 3.4 or above is **required**.
|
|
|
|
|
To install it on a distribution that doesn't provide it, see :ref:`pyenv <pyenv-install>`.
|
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
|
|
|
|
Stable version
|
|
|
|
|
~~~~~~~~~~~~~~
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-11-04 20:16:47 +00:00
|
|
|
|
`Stable version`_ packages are available in standalone (dependencies provided)
|
2014-02-19 00:20:15 +00:00
|
|
|
|
and poezio-only packages (both with prebuilt html doc for convenience).
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-11-04 20:16:47 +00:00
|
|
|
|
Those versions are also available on pypi_ (using pip3, for example), and it is
|
|
|
|
|
recommended to install them this way if you absolutely want to **install** poezio
|
|
|
|
|
and your distribution provides no package.
|
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
|
|
|
|
"""""""
|
|
|
|
|
General
|
|
|
|
|
"""""""
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-11-04 20:16:47 +00:00
|
|
|
|
Poezio is a python3.4 (and above)-only application, so you will first need that.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-11-04 20:16:47 +00:00
|
|
|
|
You will also need the python3-devel package or equivalent, and make, in order
|
|
|
|
|
to compile the poezio C module. Then you can run ``make`` to build 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-11-04 20:16:47 +00:00
|
|
|
|
- aiodns_
|
|
|
|
|
- slixmpp_
|
|
|
|
|
|
|
|
|
|
.. versionchanged:: 0.9
|
2014-02-18 23:39:51 +00:00
|
|
|
|
|
2014-10-27 18:16:32 +00:00
|
|
|
|
|
2014-11-04 20:16:47 +00:00
|
|
|
|
Additionally, it needs *python3-setuptools*, which is required for proper python
|
|
|
|
|
packaging management.
|
2014-02-18 23:39:51 +00:00
|
|
|
|
|
2014-11-04 20:16:47 +00:00
|
|
|
|
.. note:: We provide a script ``update.sh`` that creates a virtualenv and
|
|
|
|
|
downloads all the required and optional dependencies inside it.
|
|
|
|
|
we recommend using it with the git version of poezio, in order
|
|
|
|
|
to keep everything up-to-date.
|
2014-02-18 23:39:51 +00:00
|
|
|
|
|
2014-11-04 20:16:47 +00:00
|
|
|
|
If you don’t want to use the update script for whatever reason, install the
|
|
|
|
|
following dependencies by hand; otherwise, skip to the
|
2014-11-29 17:10:04 +00:00
|
|
|
|
:ref:`installation part <poezio-install-label>`.
|
2014-02-18 23:39:51 +00:00
|
|
|
|
|
|
|
|
|
|
2014-11-04 20:16:47 +00:00
|
|
|
|
""""""""
|
|
|
|
|
slixmpp
|
|
|
|
|
""""""""
|
|
|
|
|
|
|
|
|
|
Poezio depends on slixmpp, a non-thread fork of the SleekXMPP library.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
2014-11-29 17:10:04 +00:00
|
|
|
|
git clone git://git.poez.io/slixmpp
|
2014-02-18 23:39:51 +00:00
|
|
|
|
python3 setup.py install --user
|
|
|
|
|
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
2014-11-04 20:16:47 +00:00
|
|
|
|
""""""
|
|
|
|
|
aiodns
|
|
|
|
|
""""""
|
|
|
|
|
|
|
|
|
|
The aiodns is required in order to properly resolve XMPP domains (with SRV records).
|
|
|
|
|
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
2014-11-04 20:16:47 +00:00
|
|
|
|
pip install --user aiodns
|
|
|
|
|
|
|
|
|
|
This will also install pycares, which aiodns uses.
|
2014-02-18 23:39:51 +00:00
|
|
|
|
|
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.
|
2014-11-04 20:16:47 +00:00
|
|
|
|
And preferably using your distribution’s package manager.
|
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
|
|
|
|
|
|
|
|
|
|
|
2014-11-04 20:16:47 +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
|
2014-11-04 20:16:47 +00:00
|
|
|
|
.. _slixmpp: https://dev.louiz.org/projects/slixmpp
|
|
|
|
|
.. _aiodns: https://github.com/saghul/aiodns
|
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
|
2014-11-04 20:16:47 +00:00
|
|
|
|
.. _pypi: https://pypi.python.org/pypi/poezio
|
2014-11-29 17:10:04 +00:00
|
|
|
|
|