【问题标题】:How to add non-native Python module in Yocto BSP with recipes proper way如何以正确的方式在 Yocto BSP 中添加非本地 Python 模块
【发布时间】:2022-03-25 08:37:21
【问题描述】:

我找到了不错的项目https://github.com/NFJones/pipoe 还用它制作了一些从 PyPi 下载 Python3 模块并尝试将它们包含在我的自定义图像中的食谱。 将所有食谱放入 ../sources/meta-custom/recpies-devtools/python 单个配方看起来像 python3-gpsd-py3_0.3.0.bb

SUMMARY = "Python 3 library for working with gpsd"
HOMEPAGE = "https://github.com/MartijnBraam/gpsd-py3"
AUTHOR = "Martijn Braam <martijn@brixit.nl>"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://setup.py;md5=3e3cbe31a62516c437edc8135773c462"

inherit setuptools3 pypi

SRC_URI[md5sum] = "041ce56e8879e2104b4d54c8119cd529"
SRC_URI[sha256sum] = "2908d3bd78dfb6720ecfe22f97e139b5a4a198f38df3a77215cf644a33513192"

PYPI_PACKAGE = "gpsd-py3"

DEPENDS += " "
RDEPENDS_${PN} = ""

BBCLASSEXTEND = "native nativesdk"

但无论如何,bitbake 没有找到任何单一编译的配方 bitbake python3-gpsd-py3_0.3.0.bb

如何在 Yocto 食谱中正确添加非原生 Python3 模块? 还有如何在 Yocto BSP 中添加自定义 Python 应用程序?

【问题讨论】:

    标签: python-3.x yocto-recipe


    【解决方案1】:

    挖掘后发现——你自己的食谱应该放在../sources/meta-openembedded/meta-python/recipes-devtools/python

    【讨论】:

    • 事实上 - 可以在自定义元层目录中的任何位置
    猜你喜欢
    • 1970-01-01
    • 2021-06-10
    • 1970-01-01
    • 2020-05-19
    • 2012-09-24
    • 2016-12-16
    • 2020-07-03
    • 2019-11-05
    • 2021-10-07
    相关资源
    最近更新 更多