apt dependies for pypi package

喜你入骨 提交于 2020-05-09 06:23:27

问题


Question about the policy of installing third-party binary dependencies missing from pypi.

There is a package distributed via pypi, depending on the set of libraries from the debian repository of debian packages (apt install). Without these libraries, the package will not work / install. How to install / ask the user to install these libraries.

What is community policy on this issue?


回答1:


The most correct way is to distribute your packages in the proper system package format — rpm, deb, whatever. Those formats allow to declare other system dependencies so that package managers automatically resolve dependencies version and install the dependencies.

To create a deb package from a Python one use https://pypi.org/project/stdeb/.

If you want to distribute Python package from PyPI there is no way for the package to declare system dependencies. The only way to handle this is to document dependencies and let the user handle them.



来源:https://stackoverflow.com/questions/58816180/apt-dependies-for-pypi-package

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!