def done(self): def process(resp): pass # ignore result, don't care for extn in self._builder._extn_reg._paths: process_extension(extn, self._builder._ctx, 'configure', process) return self._builder
def done(self): def process(retcode): if retcode != 0: raise RuntimeError('Extension Failed with [%s]' % retcode) for path in self._paths: process_extension(path, self._ctx, 'compile', process, args=[self._installer]) self._ctx['EXTENSIONS'].extend(self._paths) return self._installer
def extensions(self): ctx = self.builder._ctx extn_reg = self.builder._extn_reg def process(retcode): if retcode != 0: raise RuntimeError('Extension Failed with [%s]' % retcode) for path in extn_reg._paths: process_extension(path, ctx, 'compile', process, args=[self]) ctx['EXTENSIONS'].extend(extn_reg._paths) return self