]> git.phdru.name Git - mimedecode.git/blobdiff - INSTALL.txt
Update installation instructions for virtual envs
[mimedecode.git] / INSTALL.txt
index d3cd7430a3fec1a40dcc20a5718e783d1400869a..3dcbcbed4d5b137b6b0c1d2990d0b902c89a2e69 100644 (file)
@@ -1,23 +1,38 @@
 mimedecode requires Python2; preferred versions are 2.6 or 2.7.
 mimedecode requires Python2; preferred versions are 2.6 or 2.7.
-mimedecode requires m_lib library.
-
-First install m_lib.
 
 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. If you don't have it
 installed setup.py will try to download and install it.
 
-To install the program from sources system-wide run run the following
-command:
+mimedecode requires m_lib library. If you don't have it installed
+setup.py will try to download and install it after installing mimedecode.
+
+Installation using pip:
+
+    System-wide:
+
+    sudo pip install --trusted-host phdru.name --find-links=http://phdru.name/Software/Python/ --install-option='-O2' mimedecode
+
+    User mode:
+
+    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:
 
 
-   sudo python setup.py install -O2
+    To install the program from sources system-wide run run the following
+    command:
 
 
-If you don't want to install it system-wide you can install it in your
-home directory; run run the following command:
+    sudo python setup.py install -O2
 
 
-   python setup.py install -O2 --user
+    If you don't want to install it system-wide you can install it in your
+    home directory; run run the following command:
 
 
-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.
+    python setup.py install -O2 --user
 
 
-Or you can simple drop mimedecode.py somewhere in your $PATH.
+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.