diff --git a/recipes-sdk/aws-crt-python/aws-crt-python_0.20.9.bb b/recipes-sdk/aws-crt-python/aws-crt-python_0.20.9.bb index d80d666f3..99e7b3941 100644 --- a/recipes-sdk/aws-crt-python/aws-crt-python_0.20.9.bb +++ b/recipes-sdk/aws-crt-python/aws-crt-python_0.20.9.bb @@ -40,6 +40,10 @@ RDEPENDS:${PN} += "python3-asyncio" CFLAGS:append = " -Wl,-Bsymbolic" +do_configure:prepend(){ + sed -i "s/__version__ = '1.0.0.dev0'/__version__ = '${PV}'/" ${S}/awscrt/__init__.py +} + RDEPENDS:${PN}-ptest += "\ ${PYTHON_PN} \ ${PYTHON_PN}-websockets \ diff --git a/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2_1.21.4.bb b/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2_1.21.4.bb index 9198af4b3..f058b14d8 100644 --- a/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2_1.21.4.bb +++ b/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2_1.21.4.bb @@ -18,6 +18,10 @@ BRANCH ?= "main" RDEPENDS:${PN} += "aws-crt-python python3-json" +do_configure:prepend(){ + sed -i "s/__version__ = '1.0.0-dev'/__version__ = '${PV}'/" ${S}/awsiot/__init__.py +} + RDEPENDS:${PN}-ptest += "\ ${PYTHON_PN} \ bash \