【问题标题】:What's the latest sphinx version which supports Python 2.7?支持 Python 2.7 的最新 sphinx 版本是什么?
【发布时间】:2021-11-26 16:21:25
【问题描述】:

我在 Python v2.7.18 上打包 Sphinx v4.2 时遇到问题:

========== 1733 passed, 3 skipped, 3477 warnings in 663.79s (0:11:03) ==========
==> Entering fakeroot environment...
==> Starting package()...
Traceback (most recent call last):
  File "setup.py", line 8, in <module>
    import sphinx
  File "/home/user/Projects/aur/python2-sphinx/src/Sphinx-4.2.0/sphinx/__init__.py", line 20, in <module>
    from .deprecation import RemovedInNextVersionWarning
  File "/home/user/Projects/aur/python2-sphinx/src/Sphinx-4.2.0/sphinx/deprecation.py", line 28
    def deprecated_alias(modname: str, objects: Dict[str, object],
                                ^
SyntaxError: invalid syntax

由于上述错误与 Python 3.x 类型提示和安装 python2-typing 没有任何区别,我猜 python 2 支持一定已被弃用,所以

支持 Python 2.x 的最新 sphinx 版本是什么?

【问题讨论】:

标签: python-sphinx python-2.x deprecated packaging type-hinting


【解决方案1】:

最新的PKGBUILD for python2-sphinx 是版本1.8.5

【讨论】:

    猜你喜欢
    • 2023-03-03
    • 1970-01-01
    • 2015-04-13
    • 1970-01-01
    • 1970-01-01
    • 2022-01-23
    • 1970-01-01
    • 2019-12-19
    • 2021-02-20
    相关资源
    最近更新 更多