diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-04-12 16:56:44 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-04-12 17:36:27 +0100 |
commit | e0d0662ccc0c26c30d417888ca3f2e5ab68bcb04 (patch) | |
tree | 6d9db3be18296975a2d573421ed5a59c19921c7a /morphlib/__init__.py | |
parent | 82e9a58b550731e5a5d367bb2b67c104f1b04ef2 (diff) | |
download | morph-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__.py | 1 |
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 |