From 36cfe31759eb794433a1effb3489a3d4af3b722f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 16 Apr 2017 11:02:34 +0300 Subject: [PATCH] Update installation instructions: prefer pip --- INSTALL.txt | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/INSTALL.txt b/INSTALL.txt index 381c00b..9a2ed5b 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -6,23 +6,29 @@ installed setup.py will try to download and install it. mimedecode requires m_lib library. If you don't have it installed setup.py will try to download and install it after installing mimedecode. -To install the program 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' mimedecode - python setup.py install -O2 --user + User mode: -Option '--user' only available in Python 2.6 or 2.7. The command -installs library parts 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 mimedecode -It also installs mimedecode script into $HOME/.local/bin; add the -directory to your $PATH or move the script to a directory in your $PATH. +Installation from sources: -Installation using pip: + To install the program 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] mimedecode +Option '--user' installs library parts into +$HOME/.local/lib/python2.$VERSION/site-packages/. It also installs +mimedecode script into $HOME/.local/bin; add the directory to your $PATH +or move the script to a directory in your $PATH. -- 2.39.2