1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-10 04:02:17 +00:00
supysonic/docs/setup/install.rst

94 lines
2.4 KiB
ReStructuredText
Raw Normal View History

2021-01-09 15:05:49 +00:00
Installing Supysonic
====================
Supysonic is written in Python and supports Python 3.7 and later.
2021-01-09 15:05:49 +00:00
Linux
-----
Currently, only Debian-based distributions might provide Supysonic in their
2021-01-16 15:09:53 +00:00
package repositories. Install the package ``supysonic`` using :command:`apt`::
2021-01-09 15:05:49 +00:00
2021-01-16 15:09:53 +00:00
$ apt install supysonic
2021-01-09 15:05:49 +00:00
This will install Supysonic along with the minimal dependencies it needs to
run.
2021-01-09 15:58:00 +00:00
If you plan on using it with a MySQL or PostgreSQL database you also need the
corresponding Python package, ``python3-pymysql`` for MySQL or
``python3-psycopg2`` for PostgreSQL.
2021-01-09 15:05:49 +00:00
::
$ apt install python3-pymysql
2021-01-09 15:05:49 +00:00
::
$ apt install python3-psycopg2
2021-01-09 15:05:49 +00:00
For other distributions, you might consider installing with `pip`_ or from
:ref:`docker` images.
2021-01-09 15:05:49 +00:00
Windows
-------
.. note::
While Supysonic hasn't been thoroughly tested on Windows, it *should* work.
If something is broken, we're really sorry. Don't hesitate to `open an
issue`__ on GitHub.
__ https://github.com/spl0k/supysonic/issues
Most Windows users do not have Python installed by default, so we begin with
the installation of Python itself. To check if you already have Python
installed, open the *Command Prompt* (:kbd:`Win-R` and type :command:`cmd`).
Once the command prompt is open, type :command:`python --version` and press
Enter. If Python is installed, you will see the version of Python printed to
2021-11-28 13:50:02 +00:00
the screen. If you do not have Python installed, head over to the `Python
website`__ and install one of the `compatible Python versions`__. You need at
least Python 3.7.
2021-01-09 15:05:49 +00:00
Once Python is installed, you can install Supysonic using :command:`pip`. Refer
to the `installation instructions <pip_>`_ below for more information.
2021-01-09 15:05:49 +00:00
2021-11-28 13:50:02 +00:00
__ https://www.python.org/
__ https://www.python.org/downloads/windows/
2021-01-09 15:05:49 +00:00
.. _pip:
2021-01-09 15:05:49 +00:00
pip
---
2021-01-09 15:05:49 +00:00
Simply install the package ``supysonic`` with :command:`pip`::
2021-01-09 15:05:49 +00:00
$ pip install supysonic
2021-01-09 15:05:49 +00:00
This will install Supysonic along with the minimal dependencies it needs, but
those don't include the requirements for the web server. For this you'll need
to install either ``gevent``, ``gunicorn`` or ``waitress``.
::
$ pip install gevent
::
$ pip install gunicorn
::
$ pip install waitress
2021-01-09 15:05:49 +00:00
2021-01-09 15:58:00 +00:00
If you plan on using it with a MySQL or PostgreSQL database you also need the
2021-01-09 15:05:49 +00:00
corresponding package, ``pymysql`` for MySQL or ``psycopg2-binary`` for
PostgreSQL.
::
$ pip install pymysql
::
$ pip install psycopg2-binary