From f81e8ee7fdcfbf636a25a8a9a8da2165a3c5109a Mon Sep 17 00:00:00 2001 From: Alexander Afanasyev Date: Fri, 26 Apr 2013 11:13:12 -0700 Subject: [PATCH] bug 1562: waf upgrade, patch to launch apiscan task --- bindings/python/wscript | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/bindings/python/wscript b/bindings/python/wscript index f43515987..85ed23155 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -9,8 +9,8 @@ import sys 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 @@ class apiscan_task(Task.TaskBase): 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)