bindings/python/wscript
changeset 4312 a20c4300f959
parent 4255 07f1fdd8a33e
child 4326 179f86838e62
--- a/bindings/python/wscript	Mon Apr 06 11:12:42 2009 +0200
+++ b/bindings/python/wscript	Mon Apr 06 13:05:59 2009 +0100
@@ -429,8 +429,9 @@
             if was_enabled:
                 features.append(name)
 
-        bindgen = bld.new_task_gen('command', source=source, target=target,
-                                   command=argv, variables=dict(FEATURES=(','.join(features))))
+        bindgen = bld.new_task_gen('command', source=source, target=target, command=argv)
+        bindgen.env['FEATURES'] = ','.join(features)
+        bindgen.dep_vars = ['FEATURES']
         bindgen.before = 'cxx'
         bindgen.after = 'gen_everything_h_task'