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

95 lines
2.6 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.5+.
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.
.. note::
As of January 2021, Supysonic only reached Debian's *testing* release. If
you're using the *stable* release it might not be available in the packages
yet.
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 Python package, ``python-pymysql`` for MySQL or
``python-psycopg2`` for PostgreSQL.
::
2021-01-16 15:09:53 +00:00
$ apt install python-pymysql
2021-01-09 15:05:49 +00:00
::
2021-01-16 15:09:53 +00:00
$ apt install python-psycopg2
2021-01-09 15:05:49 +00:00
2021-01-17 11:29:37 +00:00
For other distributions, you might consider installing from :ref:`docker` images
or from `source`_.
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
the screen. If you do not have Python installed, refer to the `Hitchhikers
Guide to Python's`__ Python on Windows installation guides. You must install
`Python 3`__.
Once Python is installed, you can install Supysonic using :command:`pip`. Refer
to the `source installation instructions <source_>`_ below for more information.
__ https://docs.python-guide.org/
__ https://docs.python-guide.org/starting/install3/win/
.. _source:
Source
------
You can install Supysonic directly from a clone of the `Git repository`__. This
2021-01-17 11:29:37 +00:00
can be done either by cloning the repo and installing from the local clone::
2021-01-09 15:05:49 +00:00
$ git clone https://github.com/spl0k/supysonic.git
$ cd supysonic
$ pip install .
2021-01-17 11:29:37 +00:00
or simply installing directly via :command:`pip`::
2021-01-09 15:05:49 +00:00
$ pip install git+https://github.com/spl0k/supysonic.git
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
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
__ https://github.com/spl0k/supysonic