summaryrefslogtreecommitdiff
path: root/morphlib/__init__.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-04-12 16:56:44 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-04-12 17:36:27 +0100
commite0d0662ccc0c26c30d417888ca3f2e5ab68bcb04 (patch)
tree6d9db3be18296975a2d573421ed5a59c19921c7a /morphlib/__init__.py
parent82e9a58b550731e5a5d367bb2b67c104f1b04ef2 (diff)
downloadmorph-e0d0662ccc0c26c30d417888ca3f2e5ab68bcb04.tar.gz
morphlib: add buildenvironment and tests
BuildEnvironment should contain all the information about whatever settings affect the build. A subset of these will affect the cache key, but CacheKeyComputer filters them itself. BuildEnvironment has consumed the purpose of Morph.clean_env() because the build environment is a good place to store this information. The environment variables are decided based on the current settings. The current environment can be accessed by the env attribute. The tests are a little invasive because it reads environment variables and most of the work is done in the constructor, but they should test everything useful.
Diffstat (limited to 'morphlib/__init__.py')
-rw-r--r--morphlib/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/morphlib/__init__.py b/morphlib/__init__.py
index 26727929..adb0fa1e 100644
--- a/morphlib/__init__.py
+++ b/morphlib/__init__.py
@@ -23,6 +23,7 @@ import blobs
import buildcontroller
import builddependencygraph
import buildgraph
+import buildenvironment
import buildsystem
import buildworker
import builder