mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

Error messages like the following are encountered if datetime and stringold are not in RDEPENDS for pytoml, so add them: |Python 3.8.2 (default, Apr 27 2020, 08:51:00) |[GCC 9.3.0] on linux |Type "help", "copyright", "credits" or "license" for more information. |>>> import pytoml |Traceback (most recent call last): |File "<stdin>", line 1, in <module> |File "/usr/lib64/python3.8/site-packages/pytoml/_init_.py", line 2, in <module> |from .parser import load, loads |File "/usr/lib64/python3.8/site-packages/pytoml/parser.py", line 3, in <module> |from .utils import rfc3339_re, parse_rfc3339_re |File "/usr/lib64/python3.8/site-packages/pytoml/utils.py", line 1, in <module> |import datetime |ModuleNotFoundError: No module named 'datetime' Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
31 lines
705 B
BlitzBasic
31 lines
705 B
BlitzBasic
SUMMARY = "A TOML-0.4.0 parser/writer for Python"
|
|
HOMEPAGE = "https://pypi.python.org/pypi/pytoml/"
|
|
SECTION = "devel/python"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=cfff423699bdaef24331933ac4f56078"
|
|
|
|
SRC_URI[md5sum] = "e59dd36a559dd2a876e4c149c69e947b"
|
|
SRC_URI[sha256sum] = "8eecf7c8d0adcff3b375b09fe403407aa9b645c499e5ab8cac670ac4a35f61e7"
|
|
|
|
inherit pypi setuptools3 ptest
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
|
|
SRC_URI += " \
|
|
file://run-ptest \
|
|
"
|
|
|
|
RDEPENDS_${PN} += " \
|
|
${PYTHON_PN}-datetime \
|
|
${PYTHON_PN}-stringold \
|
|
"
|
|
|
|
RDEPENDS_${PN}-ptest += " \
|
|
${PYTHON_PN}-pytest \
|
|
"
|
|
|
|
do_install_ptest() {
|
|
install -d ${D}${PTEST_PATH}/test
|
|
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
|
|
}
|