【发布时间】:2021-09-03 08:53:31
【问题描述】:
我尝试在 Yocto 2.6 Thud 中包含来自 pypi.org 的 python modul pydantic 和下一个配方(由 https://github.com/NFJones/pipoe 自动生成)
SUMMARY = "Data validation and settings management using python 3.6 type hinting"
HOMEPAGE = "https://github.com/samuelcolvin/pydantic"
AUTHOR = "Samuel Colvin <s@muelcolvin.com>"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2c02ea30650b91528657db64baea1757"
inherit setuptools3
SRC_URI = "https://files.pythonhosted.org/packages/b9/d2/12a808613937a6b98cd50d6467352f01322dc0d8ca9fb5b94441625d6684/pydantic-1.8.2.tar.gz"
SRC_URI[md5sum] = "7845d2f3c8fe8602f73f53ec5b6dfa29"
SRC_URI[sha256sum] = "26464e57ccaafe72b7ad156fdaa4e9b9ef051f69e175dbbb463283000c05ab7b"
S = "${WORKDIR}/pydantic-1.8.2"
DEPENDS += " "
RDEPENDS_${PN} = "python3-typing-extensions"
BBCLASSEXTEND = "native nativesdk"
依赖的模块也包含在生成的配方中,并且编译正常。 无论如何,我在 bitbake 期间收到错误并且无法避免:
Log data follows:
| DEBUG: Executing shell function do_configure
| File "setup.py", line 47
| self.links.add(f'.. _#{id}: https://github.com/samuelcolvin/pydantic/issues/{id}')
| ^
| SyntaxError: invalid syntax
| WARNING: exit code 1 from a shell command.
任何想法(无需伪造和编辑源代码)?
【问题讨论】:
标签: python-3.x yocto pydantic