【问题标题】:Add python project based on pyproject.toml to yocto image添加基于pyproject.toml的python项目到yocto镜像
【发布时间】:2021-12-21 16:00:08
【问题描述】:

我正在整理一个食谱,应该将amqtt 添加到我的图像 (https://github.com/Yakifo/amqtt)。该项目仅带有pyproject.toml,但缺少setup.py。因此,bitbake 抱怨找不到setup.py 我在分支dunfell 上,这些是我的食谱中最相关的部分:

HOMEPAGE = "https://github.com/Yakifo/amqtt"

SRC_URI = "git://github.com/Yakifo/amqtt;protocol=https"

SRCREV = "4beb912c2a0d58d66140ce68b6a31991c2c48b30"

S = "${WORKDIR}/git"

inherit setuptools3 pypi distutils

我们非常感谢您的意见。

【问题讨论】:

    标签: yocto bitbake


    【解决方案1】:

    我最后切换到pypi 安装程序。最重要的部分是:

    PYPI_PACKAGE = "amqtt"
    
    inherit pypi setuptools3
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-18
      • 2023-02-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多