如何在yocto图像中包含python pex包

卡马尔

我需要在我的yocto映像中包含python pex软件包。

我尝试使用setupautotools和pypi包,但未提供结果。

python pex不能作为pypi包使用。

有人可以帮助将python pex包含到我的yocto图像中吗?

pex的链接:https : //pypi.org/project/pex/#description

有什么方法可以在没有pip的情况下安装pex?

更新的问题:我需要将链接中提到的pex软件包安装到yocto映像中。pex包在git存储库中不可用,例如wheel https://github.com/pypa/wheel由于这个原因,我无法在yocto配方的.bb文件中使用“继承pypi setuptools”。

弗洛里安·伯恩德尔

我认为您需要编写的所有其他Python包都已经存在。

https://github.com/pantsbuild/pex是github仓库

https://pypi.python.org/pypi/pex是pypi软件包

您需要类似以下内容:

SUMMARY = "pex is a library for generating .pex (Python EXecutable) files which are executable Python environments in the spirit of virtualenvs."
HOMEPAGE = "https://github.com/pantsbuild/pex"
SECTION = "devel/python"
LICENSE = ""
LIC_FILES_CHKSUM = "file://LICENSE;md5=0123"

SRC_URI[md5sum] = "0123"
SRC_URI[sha256sum] = "0123"

PYPI_PACKAGE="pex"

inherit pypi 

RDEPENDS_${PN} = "\
    ${PYTHON_PN}-core \
"

BBCLASSEXTEND = "native nativesdk"

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章