[meta-virtualization] [PATCH] python-netifaces: Add python3 version

Zang Ruochen zangrc.fnst at cn.fujitsu.com
Thu Aug 29 23:32:28 PDT 2019


Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
---
 meta-openstack/recipes-devtools/python/python-netifaces.inc  | 10 ++++++++++
 .../recipes-devtools/python/python-netifaces_0.10.9.bb       | 12 ++----------
 .../recipes-devtools/python/python3-netifaces_0.10.9.bb      |  2 ++
 3 files changed, 14 insertions(+), 10 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-netifaces.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-netifaces_0.10.9.bb

diff --git a/meta-openstack/recipes-devtools/python/python-netifaces.inc b/meta-openstack/recipes-devtools/python/python-netifaces.inc
new file mode 100644
index 0000000..b1b1ed5
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-netifaces.inc
@@ -0,0 +1,10 @@
+DESCRIPTION = "Portable network interface information."
+HOMEPAGE = "http://alastairs-place.net/netifaces"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+SRC_URI[md5sum] = "de92cc322b4f56047c073f802ad77860"
+SRC_URI[sha256sum] = "2dee9ffdd16292878336a58d04a20f0ffe95555465fee7c9bd23b3490ef2abf3"
+
+inherit pypi
diff --git a/meta-openstack/recipes-devtools/python/python-netifaces_0.10.9.bb b/meta-openstack/recipes-devtools/python/python-netifaces_0.10.9.bb
index 05f5f4a..aa9760b 100644
--- a/meta-openstack/recipes-devtools/python/python-netifaces_0.10.9.bb
+++ b/meta-openstack/recipes-devtools/python/python-netifaces_0.10.9.bb
@@ -1,10 +1,2 @@
-DESCRIPTION = "Portable network interface information."
-HOMEPAGE = "http://alastairs-place.net/netifaces"
-SECTION = "devel/python"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
-
-SRC_URI[md5sum] = "de92cc322b4f56047c073f802ad77860"
-SRC_URI[sha256sum] = "2dee9ffdd16292878336a58d04a20f0ffe95555465fee7c9bd23b3490ef2abf3"
-
-inherit setuptools pypi
+inherit setuptools
+require python-netifaces.inc
diff --git a/meta-openstack/recipes-devtools/python/python3-netifaces_0.10.9.bb b/meta-openstack/recipes-devtools/python/python3-netifaces_0.10.9.bb
new file mode 100644
index 0000000..a46326f
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-netifaces_0.10.9.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-netifaces.inc
-- 
2.7.4





More information about the meta-virtualization mailing list