示例#1
0
文件: state.py 项目: zielmicha/pypy
 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)
示例#2
0
 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)
示例#3
0
 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)