diff options
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.inc | 13 |
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 @@ | |||
1 | DESCRIPTION = "SDK for connecting to AWS IoT using Python." | 1 | DESCRIPTION = "SDK for connecting to AWS IoT using Python." |
2 | HOMEPAGE = "https://github.com/aws/aws-iot-device-sdk-python" | 2 | HOMEPAGE = "https://github.com/aws/aws-iot-device-sdk-python" |
3 | LICENSE = "Apache-2.0 & (EPL-1.0 | EDL-1.0)" | 3 | LICENSE = "Apache-2.0 & (EPL-1.0 | EDL-1.0)" |
4 | LICENSE_${PN}-examples = "Apache-2.0" | ||
4 | LIC_FILES_CHKSUM = "\ | 5 | LIC_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 | ||
14 | PYPI_PACKAGE = "AWSIoTPythonSDK" | 15 | PYPI_PACKAGE = "AWSIoTPythonSDK" |
15 | 16 | ||
17 | do_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 | |||
24 | PACKAGES =+ "${PN}-examples" | ||
25 | |||
16 | RDEPENDS_${PN} += " \ | 26 | RDEPENDS_${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 | " |
37 | RDEPENDS_${PN}-examples += "${PN}" | ||
38 | |||
39 | FILES_${PN}-examples = "${datadir}/${BPN}/examples" | ||
27 | 40 | ||
28 | BBCLASSEXTEND = "native nativesdk" | 41 | BBCLASSEXTEND = "native nativesdk" |