X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=blobdiff_plain;f=INSTALL.txt;h=2ee102eadc42ed6910acd0e4ef8421e49aa74897;hp=f92c59501625cc290f69e791d6a580b2f57ced0a;hb=972bae8625e655e34170c588561eed078ceb37d9;hpb=04669ad22d9443fd8d475d605437b7e625a0a942 diff --git a/INSTALL.txt b/INSTALL.txt index f92c595..2ee102e 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -1,4 +1,4 @@ -mimedecode requires Python2; preferred versions are 2.6 or 2.7. +mimedecode requires Python2.7. Installation script setup.py requires setuptools. If you don't have it installed setup.py will try to download and install it. @@ -6,16 +6,33 @@ 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 --trusted-host phdru.name --find-links=http://phdru.name/Software/Python/ --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 mimedecode into $HOME/.local/bin; add the directory to your -$PATH. + pip install --trusted-host phdru.name --find-links=http://phdru.name/Software/Python/ --install-option='-O2' --user mimedecode + + Virtual envs: + + pip install --trusted-host phdru.name --find-links=http://phdru.name/Software/Python/ --install-option='-O2' mimedecode + +Installation from sources: + + 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 + +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.