X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=INSTALL.txt;h=d1efdf1660cc1540ecb3678ed1afe36ad9dab006;hb=1eaf9b16146af96a6c0fbc839c6b455e86004782;hp=d04b87fd89421f1a0e2861538570d1d467ab5f98;hpb=61071fd7a9a44a533020062305c72d6d9502cb5e;p=m_lib.git diff --git a/INSTALL.txt b/INSTALL.txt index d04b87f..d1efdf1 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -1,18 +1,35 @@ -m_lib requires Python2; preferred versions are 2.6 or 2.7. +m_lib requires Python 2.6, 2.7 or 3.4+. -Installation script setup.py requires setuptools. If you don't have it -installed setup.py will try to download and install it. +Installation script setup.py requires setuptools. -To install the library from sources system-wide run run the following -command: +Installation using pip: - sudo python setup.py install -O2 + System-wide: -If you don't want to install it system-wide you can install it in your -home directory; run run the following command: + sudo pip install m_lib - python setup.py install -O2 --user + User mode: -Option '--user' only available in Python 2.6 or 2.7. The command -installs m_lib into $HOME/.local/lib/python2.$VERSION/site-packages/ -where python finds it. + pip install --user m_lib + + Virtual environments: + + pip install user m_lib + + For Python 2.6 the command is easy_install. + +Installation from sources: + + To install the library from sources system-wide run run the following + command: + + sudo python setup.py install + + If you don't want to install it system-wide you can install it in your + home directory; run run the following command: + + python setup.py install --user + +Option '--user' installs m_lib into +$HOME/.local/lib/python$MAJOR.$MINOR/site-packages/ where python finds it +automatically.