summaryrefslogtreecommitdiff
path: root/doc/source/installation.rst
blob: 254bd9b775d210b9d896d233b6f63c86f7309e27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
============
Installation
============

At the command line::

    $ pip install oslo.db

Or, if you have virtualenvwrapper installed::

    $ mkvirtualenv
    $ pip install oslo.db

You will also need to install at least one SQL backend::

    $ pip install MySQL-python

Or::

    $ pip install pysqlite

Using with MySQL
----------------

If using MySQL make sure to install the MySQL client development package for
your distro. On Ubuntu this is done as follows::

    $ sudo apt-get install libmysqlclient-dev
    $ pip install MySQL-python

The installation of MySQL-python will fail if libmysqlclient-dev is not
installed first. Note that even in a virtual environment the MySQL package will
be installed system wide.