]> git.phdru.name Git - mimedecode.git/blobdiff - INSTALL.txt
Build(GHActions): Use `checkout@v4` instead of outdated `v2`
[mimedecode.git] / INSTALL.txt
index d3cd7430a3fec1a40dcc20a5718e783d1400869a..337281a673f4a550c8f9e781bed3a26edde239f8 100644 (file)
@@ -1,23 +1,41 @@
-mimedecode requires Python2; preferred versions are 2.6 or 2.7.
-mimedecode requires m_lib library.
+mimedecode requires Python 2.7 or 3.4+.
 
-First install m_lib.
+Installation script setup.py requires setuptools.
 
-Installation script setup.py requires setuptools. If you don't have it
-installed setup.py will try to download and install it.
+mimedecode requires m_lib.defenc library. If you don't have it installed
+setup.py will try to download and install it before 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=https://phdru.name/Software/Python/ 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=https://phdru.name/Software/Python/ --user mimedecode
 
-Or you can simple drop mimedecode.py somewhere in your $PATH.
+    Virtual envs:
+
+    pip install --trusted-host phdru.name --find-links=https://phdru.name/Software/Python/ mimedecode
+
+Installation from sources:
+
+    To install the program 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
+
+    Virtual envs:
+
+    python setup.py install
+
+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.