X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=INSTALL.txt;h=cb6dea5b39cd6037d36ff894d94a05daa371427a;hb=b85b6bac3e3a786e818243d32099146bed05d163;hp=5d05b6482cbab8a32222d9e168f29fbedf968235;hpb=924748035256075a7b323d623ba521a7a9cce873;p=m_lib.git diff --git a/INSTALL.txt b/INSTALL.txt index 5d05b64..cb6dea5 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -1,15 +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+. -To install the library from sources system-wide run run the following -command: +Installation script setup.py requires setuptools. - sudo python setup.py install -O2 +Installation using pip: -If you don't want to install it system-wide you can install it in your -home directory; run run the following command: + System-wide: - python setup.py install -O2 --user + sudo pip install m_lib -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. + User mode: + + pip install --user m_lib + + Virtual environments: + + pip install 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.