summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-12-16 13:29:10 (GMT)
committerSteven Knight <knight@baldmt.com>2004-12-16 13:29:10 (GMT)
commit3869e426c19bd3b2e9bbb611b596220df9b34814 (patch)
tree2de4188ab5c2719a9b61289dcd49578702552b3e /src/engine/SCons
parent34825bfd664eacf14ca95f8e9335e2dcd440bb48 (diff)
downloadSCons-3869e426c19bd3b2e9bbb611b596220df9b34814.zip
SCons-3869e426c19bd3b2e9bbb611b596220df9b34814.tar.gz
SCons-3869e426c19bd3b2e9bbb611b596220df9b34814.tar.bz2
Restore older recipe for creating env.Command() builders while a better solution is coded.
Diffstat (limited to 'src/engine/SCons')
-rw-r--r--src/engine/SCons/Environment.py8
-rw-r--r--src/engine/SCons/EnvironmentTests.py7
2 files changed, 2 insertions, 13 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py
index d973a01..ca543bd 100644
--- a/src/engine/SCons/Environment.py
+++ b/src/engine/SCons/Environment.py
@@ -1141,12 +1141,8 @@ class Base:
source files using the supplied action. Action may
be any type that the Builder constructor will accept
for an action."""
- builder_kw = {
- 'action' : action,
- 'source_factory' : self.fs.Entry,
- }
- builder_kw.update(kw)
- bld = apply(SCons.Builder.Builder, (), builder_kw)
+ bld = SCons.Builder.Builder(action = action,
+ source_factory = self.fs.Entry)
return apply(bld, (self, target, source), kw)
def Depends(self, target, dependency):
diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py
index 56c42cb..71383e7 100644
--- a/src/engine/SCons/EnvironmentTests.py
+++ b/src/engine/SCons/EnvironmentTests.py
@@ -2001,13 +2001,6 @@ f5: \
assert str(t) == 'xxx.out', str(t)
assert 'xxx.in' in map(lambda x: x.path, t.sources)
- # Make sure we can use Builder keyword arguments
- # on Command() calls.
- env.Command(target='mmm.out', source='mmm.1.in',
- action='multibuild', multi=1)
- env.Command(target='mmm.out', source='mmm.2.in',
- action='multibuild', multi=1)
-
def test_Configure(self):
"""Test the Configure() method"""
# Configure() will write to a local temporary file.