[oe] [meta-python][PATCH v2] python3-chardet: add a '3' suffix to binary to avoid conflicts with python2
Dima Zavin
dmitriyz at waymo.com
Sun Aug 5 00:33:34 UTC 2018
Signed-off-by: Dima Zavin <dmitriyz at waymo.com>
---
meta-python/recipes-devtools/python/python3-chardet_3.0.4.bb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta-python/recipes-devtools/python/python3-chardet_3.0.4.bb b/meta-python/recipes-devtools/python/python3-chardet_3.0.4.bb
index 038043c56..38d8122ce 100644
--- a/meta-python/recipes-devtools/python/python3-chardet_3.0.4.bb
+++ b/meta-python/recipes-devtools/python/python3-chardet_3.0.4.bb
@@ -1,2 +1,7 @@
inherit setuptools3
require python-chardet.inc
+
+do_install_append () {
+ # rename scripts that would conflict with the Python 2 build of chardet
+ mv ${D}${bindir}/chardetect ${D}${bindir}/chardetect3
+}
--
2.18.0.597.ga71716f1ad-goog
More information about the Openembedded-devel
mailing list