setupext.py 文件源码

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

项目:SlackBuilds 作者: montagdude 项目源码 文件源码
def check(self):
        try:
            import pyparsing
        except ImportError:
            raise CheckFailed(
                "could not be found")

        required = [1, 5, 6]
        if [int(x) for x in pyparsing.__version__.split('.')] < required:
            raise CheckFailed(
                "matplotlib requires pyparsing >= {0}".format(
                    '.'.join(str(x) for x in required)))

        if not self.is_ok():
            return (
                "Your pyparsing contains a bug that will be monkey-patched by "
                "matplotlib.  For best results, upgrade to pyparsing 2.0.1 or "
                "later.")

        return "using pyparsing version %s" % pyparsing.__version__
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号