From c185eb047887f61ab0a380ea400827a4e71e7753 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 16 Apr 2017 11:01:53 +0300 Subject: [PATCH] Update installation instructions: prefer pip --- INSTALL.txt | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/INSTALL.txt b/INSTALL.txt index fc06ecb..42fd7fa 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -3,20 +3,30 @@ 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. -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 --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' 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 --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' --user m_lib -Installation using pip: + 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 -O2 + + 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 -O2 --user - [sudo] pip install --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' [--user] m_lib +Option '--user' installs m_lib into +$HOME/.local/lib/python2.$VERSION/site-packages/ where python finds it +automatically. -- 2.39.5