[英]Manage non pip dependencies with poetry
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.由于pip 包站点指出zbar
需要安装在系统上。
Is it somehow possible that poetry/pip installs the zbar
dependency, while installing our package? poetry/pip 是否有可能在安装我们的包时安装zbar
依赖项?
Unfortunately not.不幸的是没有。 poetry
is essentially a wrapper of pip
and can only manage Python dependencies from PyPi. poetry
本质上是pip
的包装器,只能从 PyPi 管理 Python 依赖项。
You could consider something like Nix
for this use case: https://github.com/NixOS/nix#nix对于这个用例,你可以考虑像Nix
这样的东西: 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.或者您可以考虑一个Makefile
,它根据操作系统运行适当的brew
或apt-get
等价物。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.