--- a/bindings/python/wscript Fri Apr 26 10:09:32 2013 -0700
+++ b/bindings/python/wscript Fri Apr 26 11:13:12 2013 -0700
@@ -9,8 +9,8 @@
from waflib import Task, Options, Configure, TaskGen, Logs, Build, Utils, Errors
from waflib.Errors import WafError
-feature = TaskGen.feature
-after = TaskGen.after
+# feature = TaskGen.feature
+# after = TaskGen.after
## https://launchpad.net/pybindgen/
REQUIRED_PYBINDGEN_VERSION = (0, 16, 0, 825)
@@ -328,6 +328,18 @@
def display(self):
return 'api-scan-%s\n' % (self.target,)
+ def uid(self):
+ try:
+ return self.uid_
+ except AttributeError:
+ m = Utils.md5()
+ up = m.update
+ up(self.__class__.__name__.encode())
+ up(self.curdirnode.abspath().encode())
+ up(self.target)
+ self.uid_ = m.digest()
+ return self.uid_
+
def run(self):
top_builddir = self.bld.bldnode.abspath()
module_path = get_module_path(self.bld, self.module)