[oe] [meta-python][PATCH 1/4] python-chardet: provide both python2 and python3 packages

Pascal Bach pascal.bach at siemens.com
Thu Jan 5 17:12:29 UTC 2017


From: Pascal Bach <pascal.bach at nextrem.ch>

Signed-off-by: Pascal Bach <pascal.bach at nextrem.ch>
---
 meta-python/recipes-devtools/python/python-chardet.inc       |  8 ++++++++
 meta-python/recipes-devtools/python/python-chardet_2.3.0.bb  | 10 ++--------
 meta-python/recipes-devtools/python/python3-chardet_2.3.0.bb |  2 ++
 3 files changed, 12 insertions(+), 8 deletions(-)
 create mode 100755 meta-python/recipes-devtools/python/python-chardet.inc
 mode change 100644 => 100755 meta-python/recipes-devtools/python/python-chardet_2.3.0.bb
 create mode 100755 meta-python/recipes-devtools/python/python3-chardet_2.3.0.bb

diff --git a/meta-python/recipes-devtools/python/python-chardet.inc b/meta-python/recipes-devtools/python/python-chardet.inc
new file mode 100755
index 0000000..60305e8
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-chardet.inc
@@ -0,0 +1,8 @@
+SUMMARY = "Universal encoding detector for Python 2 and 3"
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343"
+
+inherit pypi
+
+SRC_URI[md5sum] = "25274d664ccb5130adae08047416e1a8"
+SRC_URI[sha256sum] = "e53e38b3a4afe6d1132de62b7400a4ac363452dc5dfcf8d88e8e0cce663c68aa"
diff --git a/meta-python/recipes-devtools/python/python-chardet_2.3.0.bb b/meta-python/recipes-devtools/python/python-chardet_2.3.0.bb
old mode 100644
new mode 100755
index dfc979b..b7a46e9
--- a/meta-python/recipes-devtools/python/python-chardet_2.3.0.bb
+++ b/meta-python/recipes-devtools/python/python-chardet_2.3.0.bb
@@ -1,8 +1,2 @@
-SUMMARY = "Universal encoding detector for Python 2 and 3"
-LICENSE = "LGPLv2.1"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343"
-
-SRC_URI[md5sum] = "25274d664ccb5130adae08047416e1a8"
-SRC_URI[sha256sum] = "e53e38b3a4afe6d1132de62b7400a4ac363452dc5dfcf8d88e8e0cce663c68aa"
-
-inherit pypi setuptools
+inherit setuptools
+require python-chardet.inc
diff --git a/meta-python/recipes-devtools/python/python3-chardet_2.3.0.bb b/meta-python/recipes-devtools/python/python3-chardet_2.3.0.bb
new file mode 100755
index 0000000..038043c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-chardet_2.3.0.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-chardet.inc
-- 
2.1.4



More information about the Openembedded-devel mailing list