在基本供稿中找不到位烘烤错误包 [英] bitbake error package not found in base feeds

查看:78
本文介绍了在基本供稿中找不到位烘烤错误包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想加入 https://pypi.python.org/pypi/ndeflib 在我的形象中.因此,我为此创建了一个食谱.以下是 python-ndeflib_0.2.0.bb

I want to include https://pypi.python.org/pypi/ndeflib in my image. Thus I created a recipe for this. Following are the contents of python-ndeflib_0.2.0.bb

DESCRIPTION = "NFC Data Exchange Format decoder and encoder."
SECTION = "devel/python"
LICENSE = "CLOSED"

SRC_URI = "https://pypi.python.org/packages/0c/0f/b9d94cee7847697469c49a25b4d23236de534451990b83008e6bf4fab15b/ndeflib-0.2.0.tar.gz"

do_install_append() {
    rm -f ${D}${libdir}/python*/site-packages/site.py*
}

do_compile_prepend() {
    ${STAGING_BINDIR_NATIVE}/python setup.py install ${DISTUTILS_BUILD_ARGS} || \
    true
}
SRC_URI[md5sum] = "b7ae0c34f49289c44c292e24843cfeb1"

我能够成功 bitbake python-ndeflib

但是每当我尝试构建最终的OS映像时 bitbake fsl-image-machine-test 该过程失败,并出现以下错误

but whenever I try to build my final os image bitbake fsl-image-machine-test the process fails at the with following error

ERROR: python-ndeflib not found in the base feeds

我在哪里犯错?

推荐答案

您是否尝试编写与

Did you try to write a recipe similar to the one in your previousquestion? That should have solved your issue.

编写类似于该食谱的内容,即可为您提供python3-ndeflib_0.2.0.bb:

Writing something similar to that recipe, gives you python3-ndeflib_0.2.0.bb:

DESCRIPTION = "NFC Data Exchange Format decoder and encoder."
SECTION = "devel/python"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f7c92777f3af9604e192a0d195b6a6a4"

SRC_URI[md5sum] = "b7ae0c34f49289c44c292e24843cfeb1"
SRC_URI[sha256sum] = "baa86a48cf310cf77524f6fa04f5bd90775c4c290116b6b543aa3d6d65b721bf"

inherit pypi setuptools3

似乎效果很好.请注意,我使用的是Python 3,而不是两个(setuptools3).

Which seems to work pretty well. Note that I used Python 3 instead of two (setuptools3).

除非确实需要,否则继承setuptoolssetuptools3而不是编写自己的do_compiledo_install等.

Ie inherit setuptools or setuptools3 instead of writing your own do_compile, do_install, etc, unless you really have to.

这篇关于在基本供稿中找不到位烘烤错误包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆