From a685d7b5007c13e765a29685d1ae63d8cda9c5c0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 16 Apr 2017 11:14:27 +0300 Subject: [PATCH] Add installation instructions --- docs/index.rst | 3 ++- docs/install.rst | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 docs/install.rst diff --git a/docs/index.rst b/docs/index.rst index 150cd41..6e251be 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -23,8 +23,9 @@ Contents: .. toctree:: :maxdepth: 1 - news + install mysql2sql + news Indices and tables diff --git a/docs/install.rst b/docs/install.rst new file mode 100644 index 0000000..be16bfd --- /dev/null +++ b/docs/install.rst @@ -0,0 +1,41 @@ +Installation using pip +====================== + +System-wide +----------- + +:: + + sudo pip install --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' sqlconvert + +User mode +--------- + +:: + + pip install --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' --user sqlconvert + +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 + +Option '--user' installs sqlconvert into +$HOME/.local/lib/python$MAJOR.$MINOR/site-packages/ where python finds it +automatically. It also installs sqlconvert scripts into $HOME/.local/bin; +add the directory to your $PATH or move the scripts to a directory in your +$PATH. -- 2.39.5