[oe] [meta-python][PATCH] python-pbr: Add python3 version
Zheng Ruoqin
zhengrq.fnst at cn.fujitsu.com
Wed Aug 7 16:33:05 UTC 2019
Providing a python3 version of python-pbr.
Signed-off-by: Zheng Ruoqin <zhengrq.fnst at cn.fujitsu.com>
---
meta-python/recipes-devtools/python/python-pbr.inc | 12 ++++++++++++
.../recipes-devtools/python/python-pbr_5.4.2.bb | 13 +------------
.../recipes-devtools/python/python3-pbr_5.4.2.bb | 2 ++
3 files changed, 15 insertions(+), 12 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python-pbr.inc
create mode 100644 meta-python/recipes-devtools/python/python3-pbr_5.4.2.bb
diff --git a/meta-python/recipes-devtools/python/python-pbr.inc b/meta-python/recipes-devtools/python/python-pbr.inc
new file mode 100644
index 000000000..6c5d4b1cc
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-pbr.inc
@@ -0,0 +1,12 @@
+# The inc file is in oe-core
+require recipes-devtools/python/python-pbr.inc
+
+SRC_URI[md5sum] = "ea90e1118a0132da752d45e68d10b2b8"
+SRC_URI[sha256sum] = "9b321c204a88d8ab5082699469f52cc94c5da45c51f114113d01b3d993c24cdf"
+
+do_install_append() {
+ if [ -f ${D}${bindir}/pbr ]; then
+ mv ${D}${bindir}/pbr ${D}${bindir}/pbr-2
+ fi
+}
+
diff --git a/meta-python/recipes-devtools/python/python-pbr_5.4.2.bb b/meta-python/recipes-devtools/python/python-pbr_5.4.2.bb
index 1023b2031..8f7f924da 100644
--- a/meta-python/recipes-devtools/python/python-pbr_5.4.2.bb
+++ b/meta-python/recipes-devtools/python/python-pbr_5.4.2.bb
@@ -1,13 +1,2 @@
inherit setuptools
-# The inc file is in oe-core
-require recipes-devtools/python/python-pbr.inc
-
-SRC_URI[md5sum] = "ea90e1118a0132da752d45e68d10b2b8"
-SRC_URI[sha256sum] = "9b321c204a88d8ab5082699469f52cc94c5da45c51f114113d01b3d993c24cdf"
-
-do_install_append() {
- if [ -f ${D}${bindir}/pbr ]; then
- mv ${D}${bindir}/pbr ${D}${bindir}/pbr-2
- fi
-}
-
+require python-pbr.inc
diff --git a/meta-python/recipes-devtools/python/python3-pbr_5.4.2.bb b/meta-python/recipes-devtools/python/python3-pbr_5.4.2.bb
new file mode 100644
index 000000000..97e7361b1
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pbr_5.4.2.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-pbr.inc
--
2.17.1
More information about the Openembedded-devel
mailing list