def initialize(self):
if not getattr(self, 'initialized', False):
self.initialized = True
from Cython.Build import cythonize
include_dirs = os.environ.get('CYTHON_INCLUDE_DIRS','.').split(':')
extension_modules = [
Extension('sharedbuffers.mapped_struct', ['sharedbuffers/mapped_struct.py'],
depends = ['sharedbuffers/mapped_struct.pxd']),
]
ext_modules = cythonize(extension_modules, include_path = include_dirs)
self.extend(ext_modules)
评论列表
文章目录