[oe] [meta-python][PATCH] To fix conflict error with python3-pycodestyle when do_rootfs.
Lei Maohui
leimaohui at cn.fujitsu.com
Tue Apr 16 07:42:24 UTC 2019
Signed-off-by: Lei Maohui <leimaohui at cn.fujitsu.com>
---
meta-python/recipes-devtools/python/python-pycodestyle_2.4.0.bb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta-python/recipes-devtools/python/python-pycodestyle_2.4.0.bb b/meta-python/recipes-devtools/python/python-pycodestyle_2.4.0.bb
index 7c736e7..ec6c12f 100644
--- a/meta-python/recipes-devtools/python/python-pycodestyle_2.4.0.bb
+++ b/meta-python/recipes-devtools/python/python-pycodestyle_2.4.0.bb
@@ -2,3 +2,9 @@ inherit setuptools
require python-pycodestyle.inc
RDEPENDS_${PN} += "${PYTHON_PN}-lang"
+
+do_install_append () {
+ if [ -f ${D}${bindir}/pycodestyle ]; then
+ mv ${D}${bindir}/pycodestyle ${D}${bindir}/pycodestyle-2
+ fi
+}
--
2.7.4
More information about the Openembedded-devel
mailing list