setupext.py 文件源码

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

项目:SlackBuilds 作者: montagdude 项目源码 文件源码
def check(self):
        try:
            import dateutil
        except ImportError:
            # dateutil 2.1 has a file encoding bug that breaks installation on
            # python 3.3
            # https://github.com/matplotlib/matplotlib/issues/2373
            # hack around the problem by installing the (working) v2.0
            #major, minor1, _, _, _ = sys.version_info
            #if self.version is None and (major, minor1) == (3, 3):
                #self.version = '!=2.1'

            raise CheckFailed (
                    "could not be found")

        major, minor1, _, _, _ = sys.version_info
        if dateutil.__version__ == '2.1' and (major, minor1) == (3, 3):
            raise CheckFailed (
                    "dateutil v. 2.1 has a bug that breaks installation"
                    "on python 3.3.x, use another dateutil version")
        return "using dateutil version %s" % dateutil.__version__
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号