简体   繁体   English

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

[英]how to include python pex package in yocto image

I need to include python pex package into my yocto image.我需要将 python pex 包包含到我的 yocto 图像中。

I tried to use setupautotools and pypi package, it did not provide results.我尝试使用 setupautotools 和 pypi 包,但没有提供结果。

The python pex is not available as pypi package. python pex 不能作为 pypi 包使用。

Can someone help including python pex into my yocto image.有人可以帮助将 python pex 包含到我的 yocto 图像中。

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

Is there any way to install pex without pip?有没有办法在没有pip的情况下安装pex?

Updated question: I need to install pex package mentioned in the link into my yocto image.更新的问题:我需要将链接中提到的 pex 包安装到我的 yocto 映像中。 The pex package is not available in git repository like wheel https://github.com/pypa/wheel . pex 包在 git 存储库中不可用,例如 wheel https://github.com/pypa/wheel Due to this reason i am not able to use "inherit pypi setuptools" in .bb files in yocto recipe.由于这个原因,我无法在 yocto recipe 的 .bb 文件中使用“继承 pypi setuptools”。

I think everything you need to write as the other python package are already there.我认为你需要编写的所有东西都已经存在了。

https://github.com/pantsbuild/pex is the github repo https://github.com/pantsbuild/pex是 github 仓库

https://pypi.python.org/pypi/pex is the pypi package https://pypi.python.org/pypi/pex是 pypi 包

You need something similar to:你需要类似的东西:

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"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM