summaryrefslogtreecommitdiff
path: root/buildstream/_stream.py
diff options
context:
space:
mode:
authorWilliam Salmon <will.salmon@codethink.co.uk>2018-12-04 16:42:58 +0000
committerWilliam Salmon <will.salmon@codethink.co.uk>2018-12-19 13:23:19 +0000
commite29aea36cbde0865ec9bba83de5b6f1e4347a0cd (patch)
tree4980e783d33ce7b60a3757c21ac4f69d4c0fd36c /buildstream/_stream.py
parent644d8b28505842eb713bf402b455f751b15b6022 (diff)
downloadbuildstream-e29aea36cbde0865ec9bba83de5b6f1e4347a0cd.tar.gz
Basic options for shell --build to use buildtrees
Fixes issue #740
Diffstat (limited to 'buildstream/_stream.py')
-rw-r--r--buildstream/_stream.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/buildstream/_stream.py b/buildstream/_stream.py
index 04eb409a5..85ead3330 100644
--- a/buildstream/_stream.py
+++ b/buildstream/_stream.py
@@ -124,6 +124,7 @@ class Stream():
# mounts (list of HostMount): Additional directories to mount into the sandbox
# isolate (bool): Whether to isolate the environment like we do in builds
# command (list): An argv to launch in the sandbox, or None
+ # usebuildtree (bool): Wheather to use a buildtree as the source.
#
# Returns:
# (int): The exit code of the launched shell
@@ -132,7 +133,8 @@ class Stream():
directory=None,
mounts=None,
isolate=False,
- command=None):
+ command=None,
+ usebuildtree=False):
# Assert we have everything we need built, unless the directory is specified
# in which case we just blindly trust the directory, using the element
@@ -147,7 +149,8 @@ class Stream():
raise StreamError("Elements need to be built or downloaded before staging a shell environment",
detail="\n".join(missing_deps))
- return element._shell(scope, directory, mounts=mounts, isolate=isolate, prompt=prompt, command=command)
+ return element._shell(scope, directory, mounts=mounts, isolate=isolate, prompt=prompt, command=command,
+ usebuildtree=usebuildtree)
# build()
#