Open
python2需要提供sphinx-build命令 #4
wxyAdd on May 27, 2021
May 27, 2021 将关联仓库设置为src-openEuler/python-sphinx
May 27, 2021 创建了缺陷
openeuler-ci-bot
May 27, 2021 Comments:
May 27, 2021 Comments:
Hey xiyuanwang, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.


chenyanpan
Nov 22, 2022 Comments:
Nov 22, 2022 Comments:
openEuler:20.03:LTS:SP3 OBS 日志
[ 750s] warning: absolute symlink: /usr/bin/sphinx-build -> /usr/libexec/python3-sphinx/sphinx-build
[ 750s] warning: absolute symlink: /usr/libexec/python2-sphinx/sphinx-apidoc -> /usr/bin/sphinx-apidoc-2
[ 750s] warning: absolute symlink: /usr/libexec/python2-sphinx/sphinx-autogen -> /usr/bin/sphinx-autogen-2
[ 750s] warning: absolute symlink: /usr/libexec/python2-sphinx/sphinx-build -> /usr/bin/sphinx-build-2
[ 750s] warning: absolute symlink: /usr/libexec/python2-sphinx/sphinx-quickstart -> /usr/bin/sphinx-quickstart-2
osc chroot 环境查询到的信息
[root@obs-worker-01 python-sphinx-1.8.4-2.oe1.x86_64]# rpm -qf /usr/bin/sphinx-build
python3-sphinx-1.8.4-2.oe1.noarch
python2-sphinx-1.8.4-2.oe1.noarch
[root@obs-worker-01 python-sphinx-1.8.4-2.oe1.x86_64]#
[root@obs-worker-01 python-sphinx-1.8.4-2.oe1.x86_64]# ls -l /usr/bin/sphinx-build
lrwxrwxrwx 1 root root 40 Nov 21 12:52 /usr/bin/sphinx-build -> /usr/libexec/python3-sphinx/sphinx-build
[root@obs-worker-01 python-sphinx-1.8.4-2.oe1.x86_64]#
[root@obs-worker-01 python-sphinx-1.8.4-2.oe1.x86_64]# rpm -qf /usr/libexec/python3-sphinx/sphinx-build
python3-sphinx-1.8.4-2.oe1.noarch
python2-sphinx rpm 中包含的链接 /usr/bin/sphinx-build 链接到 python3-sphinx rpm 包含的文件 /usr/libexec/python3-sphinx/sphinx-build
如果仅安装 python2-sphinx,不安装 python3-sphinx,实际上仅包含一个无效的链接,并不能解决 issue 提及的问题。


Nov 22, 2022 将任务状态从 已完成 修改为待办的
无论用户使用python2还是python3,python-sphinx都应该提供sphinx-build这个通用命令。
以OpenStackQ、R版本中的项目为例,在python2环境中也调用的是sphinx-build命令。
而目前python-sphinx在python2包中仅提供sphinx-build-2命令,建议优化。