summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2018-08-23 23:23:45 +0100
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-08-24 10:20:18 +0000
commit5bd6f7627ae0826e65296565ee04ac5b3c7c2419 (patch)
tree2bc5d855ed9c07d97bc491e281a7c4d16aedb135
parent255f9ee3eb512e64ca5a674c1144345e5d79843b (diff)
downloadbuildstream-chandan/pip-install-instructions.tar.gz
doc: Add instructions to install BuildStream via PyPIchandan/pip-install-instructions
Add instructions to install and update BuildStream python package via PyPI, and also make it the recommended method. Part of https://gitlab.com/BuildStream/buildstream/issues/587.
-rw-r--r--doc/source/install_linux_distro.rst41
1 files changed, 36 insertions, 5 deletions
diff --git a/doc/source/install_linux_distro.rst b/doc/source/install_linux_distro.rst
index 0d21bfd46..8a0d536e0 100644
--- a/doc/source/install_linux_distro.rst
+++ b/doc/source/install_linux_distro.rst
@@ -152,8 +152,29 @@ for advice on this.
Installing
~~~~~~~~~~
-Once you have the base system dependencies, you can clone the BuildStream
-git repository and install it as a regular user::
+Once you have the base system dependencies, you can install the BuildStream
+python package as a regular user.
+
+Via PyPI (recommended)
+++++++++++++++++++++++
+::
+
+ pip3 install --user BuildStream
+
+This will install latest stable version of BuildStream and its pure python
+dependencies into your user's homedir in ``~/.local``.
+
+Keep following the instructions below to ensure that the ``bst``
+command is in your ``PATH`` and to enable bash completions for it.
+
+.. note::
+
+ If you want a specific version of BuildStream, you can install it using
+ ``pip install --user BuildStream==<version-number>``
+
+Via Git checkout
+++++++++++++++++
+::
git clone https://gitlab.com/BuildStream/buildstream.git
cd buildstream
@@ -206,9 +227,19 @@ to your ``~/.bash_completion``:
Upgrading BuildStream
~~~~~~~~~~~~~~~~~~~~~
-Assuming you have followed the default instructions above, all
-you need to do to upgrade BuildStream is to update your local git
-checkout::
+
+Via PyPI
+++++++++
+
+If you installed BuildStream from PyPI, you can update it like so::
+
+ pip install --user --upgrade BuildStream
+
+Via Git checkout
+++++++++++++++++
+
+If you installed BuildStream from a local git checkout using ``-e`` option, all
+you need to do to upgrade BuildStream is to update your local git checkout::
cd /path/to/buildstream
git pull --rebase