summaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index e91895302..76362c10d 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -25,15 +25,14 @@
#
#Based on functions from the base bb module, Copyright 2003 Holger Schurig
+import logging
import os
import sys
-import logging
import bb
import bb.msg
import bb.utils
import bb.process
-from contextlib import nested
-from bb import data, event, mkdirhier, utils
+from bb import data, event, utils
bblogger = logging.getLogger('BitBake')
logger = logging.getLogger('BitBake.Build')
@@ -41,13 +40,6 @@ logger = logging.getLogger('BitBake.Build')
NULL = open('/dev/null', 'r+')
-# When we execute a python function we'd like certain things
-# in all namespaces, hence we add them to __builtins__
-# If we do not do this and use the exec globals, they will
-# not be available to subfunctions.
-__builtins__['bb'] = bb
-__builtins__['os'] = os
-
class FuncFailed(Exception):
def __init__(self, name, logfile = None):
self.logfile = logfile