Skip to contentSkip to conversation

python-pyserial: remove serialjava.py

PATCH New Dengke Du 1 participant 1 message Nov 7, 2016

lore
Share & tools
lore

Dengke Du

author
#0 lore raw

PATCH v2 1/1 python-pyserial: remove serialjava.py

The serialjava.py depends on jpython, we don't support jpython now.So remove it.

---
 meta-python/recipes-devtools/python/python-pyserial.inc | 8 ++++++++
 1 file changed, 8 insertions(+)
meta-python/recipes-devtools/python/python-pyserial.inc +8 -0
index a4c7728..61f3776 100644
@@ -14,3 +14,11 @@ SRC_URI[md5sum] = "2f72100de3e410b36d575e12e82e9d27"
 SRC_URI[sha256sum] = "d657051249ce3cbd0446bcfb2be07a435e1029da4d63f53ed9b4cdde7373364c"
 
 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
+}
Signature · 1 line
2.7.4