def create_pxd_pipeline(context, scope, module_name): from CodeGeneration import ExtractPxdCode # The pxd pipeline ends up with a CCodeWriter containing the # code of the pxd, as well as a pxd scope. return [parse_pxd_stage_factory(context, scope, module_name) ] + create_pipeline(context, 'pxd') + [ExtractPxdCode(context)]
def create_pxd_pipeline(self, scope, module_name): def parse_pxd(source_desc): tree = self.parse(source_desc, scope, pxd=True, full_module_name=module_name) tree.scope = scope tree.is_pxd = True return tree from CodeGeneration import ExtractPxdCode # The pxd pipeline ends up with a CCodeWriter containing the # code of the pxd, as well as a pxd scope. return [parse_pxd] + self.create_pipeline(pxd=True) + [ ExtractPxdCode(self), ]