summaryrefslogtreecommitdiff
path: root/morphlib/morph2.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-04-23 10:20:25 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-04-23 10:53:48 +0000
commit5a5b7ee55fd0fb83798bfb850b1b5761a2921f01 (patch)
tree648f487d89abd8667a0131521757dceb258416c0 /morphlib/morph2.py
parent376d81e333a47b4c666071a946c12de5bde1de37 (diff)
downloadmorph-5a5b7ee55fd0fb83798bfb850b1b5761a2921f01.tar.gz
morphlib/morph2: default commands are None
Builder checks whether commands need to be chosen from the build system by if the morphology has no commands, the check is whether the commands are None, rather than an empty list, so that it is possible to override a build system's commands with an empty list. However this means that the default of an empty list means that the build system is ignored and commands aren't run.
Diffstat (limited to 'morphlib/morph2.py')
-rw-r--r--morphlib/morph2.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/morphlib/morph2.py b/morphlib/morph2.py
index b5517f46..b825f8cf 100644
--- a/morphlib/morph2.py
+++ b/morphlib/morph2.py
@@ -27,10 +27,10 @@ class Morphology(object):
'''
static_defaults = [
- ('configure-commands', []),
- ('build-commands', []),
- ('test-commands', []),
- ('install-commands', []),
+ ('configure-commands', None),
+ ('build-commands', None),
+ ('test-commands', None),
+ ('install-commands', None),
('chunks', {}),
('sources', []),
('strata', []),