setup.py 文件源码

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

项目:py_find_1st 作者: roebel 项目源码 文件源码
def build_extensions(self):
        #c = self.compiler.compiler_type
        #print "compiler attr", self.compiler.__dict__
        #print "compiler", self.compiler.compiler
        #print "compiler is",c
        try:
            if compiler_is_clang(self.compiler.compiler):
                for e in self.extensions:
                    e.extra_compile_args.append('-stdlib=libstdc++')
                    e.extra_compile_args.append('-Wno-unused-function')
                for e in self.extensions:
                    e.extra_link_args.append('-stdlib=libstdc++')
        except AttributeError:
            pass
        build_ext.build_extensions(self)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号