summaryrefslogtreecommitdiff
path: root/buildstream/_platform/unix.py
diff options
context:
space:
mode:
authorJames Ennis <jennis18@bloomberg.net>2018-09-21 06:51:03 -0400
committerJürg Billeter <j@bitron.ch>2018-09-27 10:49:12 +0100
commita18a3cf9eca334128eb6119f32f8c5d7fe1f9776 (patch)
treecdaf741a3e1920babd32642c7627bc2c23c9de33 /buildstream/_platform/unix.py
parentfa1f4ba5987549be8b9d2b50fa8951d3e06cffbe (diff)
downloadbuildstream-mac_fixes.tar.gz
Import sandbox subclass when instantiating sandboxmac_fixes
Sandbox: Ensure that we only import the sandbox subclasses when instantiate a sandbox This patch was required due to not being able to execute `bst` on a Linux machine without Fuse or Bubblewrap available
Diffstat (limited to 'buildstream/_platform/unix.py')
-rw-r--r--buildstream/_platform/unix.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_platform/unix.py b/buildstream/_platform/unix.py
index 7aa8cbc0d..d2acefe65 100644
--- a/buildstream/_platform/unix.py
+++ b/buildstream/_platform/unix.py
@@ -20,7 +20,6 @@
import os
from .._exceptions import PlatformError
-from ..sandbox import SandboxChroot
from . import Platform
@@ -39,6 +38,7 @@ class Unix(Platform):
raise PlatformError("Root privileges are required to run without bubblewrap.")
def create_sandbox(self, *args, **kwargs):
+ from ..sandbox._sandboxchroot import SandboxChroot
return SandboxChroot(*args, **kwargs)
def check_sandbox_config(self, config):