summaryrefslogtreecommitdiff
path: root/HACKING.rst
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-02-05 18:25:28 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-02-05 18:25:28 +0900
commitfe3641843edce56120b77e5be6d0a3d5b2e7a267 (patch)
treeb1784650f3ce3d53370ea0837b4d0ecdf1f00075 /HACKING.rst
parent203d9d2348dd8202ecef4ee62f7d9a9ce2183dbe (diff)
downloadbuildstream-fe3641843edce56120b77e5be6d0a3d5b2e7a267.tar.gz
HACKING.rst: Recommend better method of developer install
Diffstat (limited to 'HACKING.rst')
-rw-r--r--HACKING.rst35
1 files changed, 12 insertions, 23 deletions
diff --git a/HACKING.rst b/HACKING.rst
index 8c517c122..f3994f65d 100644
--- a/HACKING.rst
+++ b/HACKING.rst
@@ -7,33 +7,18 @@ Getting Started
---------------
After cloning the BuildStream module with git, you will want a development installation.
-To do this::
+To do this, first install ``pip`` and run the following command in the buildstream
+checkout directory::
- sudo ./setup.py develop
+ pip install --user -e .
-The above will install some symlinks in system directories but should not effect your
-build directory, you can at any time later uninstall with::
+The above will install some dependencies and also a symlink to your buildstream checkout
+in your local user's python environment, so any changes you make to buildstream will be
+effective for your user.
- sudo ./setup.py develop --uninstall
-
-The benefit of this approach is that any changes you make to your local BuildStream
-checkout will take effect immediately without needing to reinstall later.
-
-To really install BuildStream, you can::
-
- ./setup.py build
- sudo setup.py install
-
-To create a source distribution of BuildStream, run::
-
- ./setup.py sdist
-
-To clean up your directory at any time and be **careful**, enter the directory and run::
-
- git clean -xdf
-
-This will remove any files not currently tracked by git, so handle the above command with care.
+You can later uninstall the local installation by running::
+ pip uninstall buildstream
Coding Style
@@ -189,6 +174,10 @@ function to feed arguments to pytest as such::
./setup.py test --addopts -s
+You can always abort on the first failure by running::
+
+ ./setup.py test --addopts -x
+
Adding Tests
~~~~~~~~~~~~