summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python-aws-iot-device-sdk-python.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python-aws-iot-device-sdk-python.inc')
-rw-r--r--meta-python/recipes-devtools/python/python-aws-iot-device-sdk-python.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-aws-iot-device-sdk-python.inc b/meta-python/recipes-devtools/python/python-aws-iot-device-sdk-python.inc
index 7b6066083f..a3299e4ac6 100644
--- a/meta-python/recipes-devtools/python/python-aws-iot-device-sdk-python.inc
+++ b/meta-python/recipes-devtools/python/python-aws-iot-device-sdk-python.inc
@@ -1,6 +1,7 @@
1DESCRIPTION = "SDK for connecting to AWS IoT using Python." 1DESCRIPTION = "SDK for connecting to AWS IoT using Python."
2HOMEPAGE = "https://github.com/aws/aws-iot-device-sdk-python" 2HOMEPAGE = "https://github.com/aws/aws-iot-device-sdk-python"
3LICENSE = "Apache-2.0 & (EPL-1.0 | EDL-1.0)" 3LICENSE = "Apache-2.0 & (EPL-1.0 | EDL-1.0)"
4LICENSE_${PN}-examples = "Apache-2.0"
4LIC_FILES_CHKSUM = "\ 5LIC_FILES_CHKSUM = "\
5 file://LICENSE.txt;md5=9ac49901b833e769c7d6f21e8dbd7b30 \ 6 file://LICENSE.txt;md5=9ac49901b833e769c7d6f21e8dbd7b30 \
6 file://AWSIoTPythonSDK/core/protocol/paho/client.py;endline=14;md5=5a3c8a1a4bb71bd934f450ecff972ad9 \ 7 file://AWSIoTPythonSDK/core/protocol/paho/client.py;endline=14;md5=5a3c8a1a4bb71bd934f450ecff972ad9 \
@@ -13,6 +14,15 @@ inherit pypi
13 14
14PYPI_PACKAGE = "AWSIoTPythonSDK" 15PYPI_PACKAGE = "AWSIoTPythonSDK"
15 16
17do_install_append() {
18 install -d -m0755 ${D}${datadir}/${BPN}/examples
19 cp --preserve=mode,timestamps -R ${S}/samples/* ${D}${datadir}/${BPN}/examples
20 # this requires the full blown AWS Python SDK
21 rm -r ${D}${datadir}/${BPN}/examples/basicPubSub
22}
23
24PACKAGES =+ "${PN}-examples"
25
16RDEPENDS_${PN} += " \ 26RDEPENDS_${PN} += " \
17 ${PYTHON_PN}-crypt \ 27 ${PYTHON_PN}-crypt \
18 ${PYTHON_PN}-datetime \ 28 ${PYTHON_PN}-datetime \
@@ -24,5 +34,8 @@ RDEPENDS_${PN} += " \
24 ${PYTHON_PN}-numbers \ 34 ${PYTHON_PN}-numbers \
25 ${PYTHON_PN}-threading \ 35 ${PYTHON_PN}-threading \
26" 36"
37RDEPENDS_${PN}-examples += "${PN}"
38
39FILES_${PN}-examples = "${datadir}/${BPN}/examples"
27 40
28BBCLASSEXTEND = "native nativesdk" 41BBCLASSEXTEND = "native nativesdk"