def build_api(self, space): """NOT_RPYTHON This function is called when at object space creation, and drives the compilation of the cpyext library """ from pypy.module.cpyext import api state = self.space.fromcache(State) if not self.space.config.translating: state.api_lib = str(api.build_bridge(self.space)) else: api.setup_library(self.space)
def build_api(self): """NOT_RPYTHON This function is called when at object space creation, and drives the compilation of the cpyext library """ self.setup_rawrefcount() from pypy.module.cpyext import api if not self.space.config.translating: self.api_lib = str(api.build_bridge(self.space)) else: api.setup_library(self.space)