Skip to content

Commit

Permalink
aws-crt-python: use submodule dependencies instead of package depende…
Browse files Browse the repository at this point in the history
…ncies

As stated here: awslabs/aws-crt-python#604 (comment)
it is not save to assume the work together.
  • Loading branch information
thomas-roos committed Oct 22, 2024
1 parent 1bc4a67 commit 618cca8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
25 changes: 9 additions & 16 deletions recipes-sdk/aws-crt-python/aws-crt-python_0.22.4.bb
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

DEPENDS += "\
${PYTHON_PN}-setuptools-native \
aws-c-auth \
aws-c-cal \
aws-c-common \
aws-c-compression \
aws-c-event-stream \
aws-c-http \
aws-c-io \
aws-c-mqtt \
aws-c-s3 \
aws-c-sdkutils \
aws-checksums \
s2n \
openssl \
"

BRANCH ?= "main"
# nooelint: oelint.file.patchsignedoff
SRC_URI = "\
git://github.com/awslabs/aws-crt-python.git;protocol=https;branch=${BRANCH} \
gitsm://github.com/awslabs/aws-crt-python.git;protocol=https;branch=${BRANCH} \
file://fix-shared-linking.patch \
file://run-ptest \
"
Expand All @@ -32,10 +21,12 @@ UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>.*)"

S = "${WORKDIR}/git"

inherit setuptools3_legacy ptest
inherit setuptools3 ptest

AWS_C_INSTALL = "${D}/usr/lib;${S}/source"

export AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO="1"

RDEPENDS:${PN} += "python3-asyncio"

CFLAGS:append = " -Wl,-Bsymbolic"
Expand All @@ -51,8 +42,10 @@ RDEPENDS:${PN}-ptest += "\
"

do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/* ${D}${PTEST_PATH}/tests/
cp -rf ${S}/test ${D}${PTEST_PATH}/
}

BBCLASSEXTEND = "native nativesdk"

# nooelint: oelint.vars.insaneskip:INSANE_SKIP
INSANE_SKIP:${PN}-dbg += "buildpaths"
10 changes: 4 additions & 6 deletions recipes-sdk/aws-crt-python/files/run-ptest
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

echo nameserver 8.8.4.4 >> /etc/resolv.conf

cd tests/

# known good tests
TESTS="\
test/test_appexit.py \
test/test_auth.py \
test/test_checksums.py \
test/test_common.py \
test/test_crypto.py \
Expand All @@ -34,8 +31,9 @@ do
done

### removed tests ####
# ./test/test_http_client.py
# ./test/test_mqtt5_canary.py
# test_auth.py
# test_http_client.py
# test_mqtt5_canary.py

# a expected exception is thrown causing ptest to fail
# ./test/test_websocket.py
# test_websocket.py

0 comments on commit 618cca8

Please sign in to comment.