[oe] [meta-python][PATCH 2/3] python-webencodings: add Python3 support

jackie.huang at windriver.com jackie.huang at windriver.com
Fri Aug 25 08:40:41 UTC 2017


From: Jackie Huang <jackie.huang at windriver.com>

Extend the recipe for Python3 support.

Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
---
 meta-python/recipes-devtools/python/python-webencodings.inc  | 10 ++++++++++
 .../recipes-devtools/python/python-webencodings_0.5.1.bb     | 12 ++----------
 .../recipes-devtools/python/python3-webencodings_0.5.1.bb    |  2 ++
 3 files changed, 14 insertions(+), 10 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-webencodings.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-webencodings_0.5.1.bb

diff --git a/meta-python/recipes-devtools/python/python-webencodings.inc b/meta-python/recipes-devtools/python/python-webencodings.inc
new file mode 100644
index 000000000..ed57c52e5
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-webencodings.inc
@@ -0,0 +1,10 @@
+SUMMARY = "Character encoding aliases for legacy web content"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://PKG-INFO;startline=8;endline=9;md5=af5c81bfe98855a56d36b6ba5de2906f"
+
+SRC_URI[md5sum] = "32f6e261d52e57bf7e1c4d41546d15b8"
+SRC_URI[sha256sum] = "b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"
+
+inherit pypi
+
+RDEPENDS_${PN} += "${PYTHON_PN}-codecs"
diff --git a/meta-python/recipes-devtools/python/python-webencodings_0.5.1.bb b/meta-python/recipes-devtools/python/python-webencodings_0.5.1.bb
index d7e4d2ebb..5de2ed1d7 100644
--- a/meta-python/recipes-devtools/python/python-webencodings_0.5.1.bb
+++ b/meta-python/recipes-devtools/python/python-webencodings_0.5.1.bb
@@ -1,10 +1,2 @@
-SUMMARY = "Character encoding aliases for legacy web content"
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://PKG-INFO;startline=8;endline=9;md5=af5c81bfe98855a56d36b6ba5de2906f"
-
-SRC_URI[md5sum] = "32f6e261d52e57bf7e1c4d41546d15b8"
-SRC_URI[sha256sum] = "b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"
-
-inherit pypi setuptools
-
-RDEPENDS_${PN} += "${PYTHON_PN}-codecs"
+inherit setuptools
+require python-webencodings.inc
diff --git a/meta-python/recipes-devtools/python/python3-webencodings_0.5.1.bb b/meta-python/recipes-devtools/python/python3-webencodings_0.5.1.bb
new file mode 100644
index 000000000..71fe741e4
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-webencodings_0.5.1.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-webencodings.inc
-- 
2.11.0




More information about the Openembedded-devel mailing list