通过诗歌管理非pip依赖性

发布于 2025-02-12 03:24:54 字数 231 浏览 1 评论 0原文

我们正在用诗歌开发项目。其中之一我们实施了QR代码解码。因为 pip软件包网站状态zbar需要在系统上安装。

在安装我们的软件包时,诗歌/PIP是否有可能安装ZBAR依赖关系?

We are develop our projects with poetry. In one of which we implement qr-code decoding. As the pip package site states zbar needs to be installed on the system.

Is it somehow possible that poetry/pip installs the zbar dependency, while installing our package?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苍暮颜 2025-02-19 03:24:54

不幸的是不是。 诗歌本质上是pip的包装器,只能管理PYTHON的依赖性。

您可以考虑此用例nix之类的东西: https:// github。 com/nixos/nix#nix

或您可以考虑运行适当的brewapt-apt-get基于等价的makefile在操作系统上。

Unfortunately not. poetry is essentially a wrapper of pip and can only manage Python dependencies from PyPi.

You could consider something like Nix for this use case: https://github.com/NixOS/nix#nix

Or you could consider a Makefile that runs the appropriate brew or apt-get-equivalent based on the operating system.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文