setup.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:atropos 作者: jdidion 项目源码 文件源码
def run(self):
        # If we encounter a PKG-INFO file, then this is likely a .tar.gz/.zip
        # file retrieved from PyPI that already includes the pre-cythonized
        # extension modules, and then we do not need to run cythonize().
        if os.path.exists('PKG-INFO'):
            no_cythonize(extensions)
        else:
            # Otherwise, this is a 'developer copy' of the code, and then the
            # only sensible thing is to require Cython to be installed.
            check_cython_version()
            from Cython.Build import cythonize
            self.extensions = cythonize(self.extensions)
        _build_ext.run(self)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号