]> git.phdru.name Git - m_lib.git/blob - INSTALL.txt
Use int() instead of atoi() for Py3 compatibility
[m_lib.git] / INSTALL.txt
1 m_lib requires Python2; preferred versions are 2.6 or 2.7.
2
3 Installation script setup.py requires setuptools. If you don't have it
4 installed setup.py will try to download and install it.
5
6 To install the library from sources system-wide run run the following
7 command:
8
9    sudo python setup.py install -O2
10
11 If you don't want to install it system-wide you can install it in your
12 home directory; run run the following command:
13
14    python setup.py install -O2 --user
15
16 Option '--user' only available in Python 2.6 or 2.7. The command
17 installs m_lib into $HOME/.local/lib/python2.$VERSION/site-packages/
18 where python finds it.
19
20 Installation using pip:
21
22    pip install --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' [--user] m_lib