ruyisdk / ruyi

RuyiSDK Package Manager
Apache License 2.0
15 stars 8 forks source link

ruyi 新增依赖 typing_extensions 未出现在 pyproject.toml 中 #220

Closed weilinfox closed 2 weeks ago

weilinfox commented 3 weeks ago

影响版本

问题描述

在未安装 typing_extensions 的机器上可见如下报错,发现新增依赖 typing_extensions (archlinux 包名 python-typing_extensions, Debian 包名 python-typing-extensions),但是该依赖在 pyproject.toml 中并没有出现。

[hachi@youmu-work ~]$ ~/.local/bin/ruyi 
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/tmp/rit-script-ruyi-src-install/venv-ruyi/lib/python3.12/site-packages/ruyi/__main__.py", line 54, in <module>
    sys.exit(main(sys.argv))
             ^^^^^^^^^^^^^^
  File "/tmp/rit-script-ruyi-src-install/venv-ruyi/lib/python3.12/site-packages/ruyi/cli/__init__.py", line 404, in main
    p = init_argparse()
        ^^^^^^^^^^^^^^^
  File "/tmp/rit-script-ruyi-src-install/venv-ruyi/lib/python3.12/site-packages/ruyi/cli/__init__.py", line 40, in init_argparse
    from ..device.provision_cli import cli_device_provision
  File "/tmp/rit-script-ruyi-src-install/venv-ruyi/lib/python3.12/site-packages/ruyi/device/provision_cli.py", line 9, in <module>
    from ..ruyipkg.atom import Atom
  File "/tmp/rit-script-ruyi-src-install/venv-ruyi/lib/python3.12/site-packages/ruyi/ruyipkg/atom.py", line 6, in <module>
    from .repo import MetadataRepo
  File "/tmp/rit-script-ruyi-src-install/venv-ruyi/lib/python3.12/site-packages/ruyi/ruyipkg/repo.py", line 16, in <module>
    from ..pluginhost import PluginHostContext
  File "/tmp/rit-script-ruyi-src-install/venv-ruyi/lib/python3.12/site-packages/ruyi/pluginhost/__init__.py", line 181, in <module>
    from .unsandboxed import UnsandboxedPluginHostContext  # noqa: E402
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/rit-script-ruyi-src-install/venv-ruyi/lib/python3.12/site-packages/ruyi/pluginhost/unsandboxed.py", line 9, in <module>
    from typing_extensions import Buffer
ModuleNotFoundError: No module named 'typing_extensions'

其他信息

Debian12 版本 4.4.0 过低