aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Straka <derek@asterius.io>2017-12-28 12:01:24 -0500
committerArmin Kuster <akuster808@gmail.com>2017-12-30 12:33:53 -0800
commit84aa13e7fc5a7cd45c3b02e0ab1d106700997804 (patch)
tree11f49c72a25232b7f00e42914865bb88c062d4b5
parent210c895d88804e78f45e768cadf930cec90198b6 (diff)
downloadmeta-openembedded-84aa13e7fc5a7cd45c3b02e0ab1d106700997804.tar.gz
meta-openembedded-84aa13e7fc5a7cd45c3b02e0ab1d106700997804.tar.bz2
meta-openembedded-84aa13e7fc5a7cd45c3b02e0ab1d106700997804.zip
python-pyserial: reorganize packaging and update RDEPENDS
Added packages for OSX, Win32, and java items that are not supports Updated RDEPENDS to work on a minimal python install Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-python/recipes-devtools/python/python-pyserial.inc44
1 files changed, 30 insertions, 14 deletions
diff --git a/meta-python/recipes-devtools/python/python-pyserial.inc b/meta-python/recipes-devtools/python/python-pyserial.inc
index 99c6fc42c..8fe3f2c5e 100644
--- a/meta-python/recipes-devtools/python/python-pyserial.inc
+++ b/meta-python/recipes-devtools/python/python-pyserial.inc
@@ -2,26 +2,42 @@ SUMMARY = "Serial Port Support for Python"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d476d94926db6e0008a5b3860d1f5c0d"
-# FIXME might stop packaging serialwin32 and serialjava files
+SRC_URI[md5sum] = "ed6183b15519a0ae96675e9c3330c69b"
+SRC_URI[sha256sum] = "6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627"
+
+inherit pypi
+
+PACKAGES =+ "${PN}-java ${PN}-osx ${PN}-win32 ${PN}-tools"
+
+FILES_${PN}-java = " \
+ ${PYTHON_SITEPACKAGES_DIR}/serial/*java* \
+ ${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*java* \
+"
+
+FILES_${PN}-osx = " \
+ ${PYTHON_SITEPACKAGES_DIR}/serial/tools/*osx* \
+ ${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/*osx* \
+"
+
+FILES_${PN}-win32 = " \
+ ${PYTHON_SITEPACKAGES_DIR}/serial/*serialcli* \
+ ${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*serialcli* \
+ ${PYTHON_SITEPACKAGES_DIR}/serial/*win32* \
+ ${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*win32* \
+ ${PYTHON_SITEPACKAGES_DIR}/serial/tools/miniterm* \
+ ${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/miniterm* \
+ ${PYTHON_SITEPACKAGES_DIR}/serial/tools/*windows* \
+ ${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/*windows* \
+"
RDEPENDS_${PN} = "\
+ ${PYTHON_PN}-argparse \
${PYTHON_PN}-fcntl \
${PYTHON_PN}-io \
${PYTHON_PN}-logging \
${PYTHON_PN}-netclient \
+ ${PYTHON_PN}-numbers \
+ ${PYTHON_PN}-shell \
${PYTHON_PN}-stringold \
${PYTHON_PN}-threading \
"
-
-SRC_URI[md5sum] = "ed6183b15519a0ae96675e9c3330c69b"
-SRC_URI[sha256sum] = "6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627"
-
-inherit pypi
-
-do_install_append() {
- # We don't support jpython now.
- if [ -e ${D}${PYTHON_SITEPACKAGES_DIR}/serial/serialjava.py ]; then
- rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/serial/serialjava.py
- rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/serial/serialjava.pyc
- fi
-}