From: Moritz Fischer <moritz.fischer@ettus.com>
To: openembedded-devel@lists.openembedded.org
Cc: paul.eggleton@linux.intel.com
Subject: [meta-python][PATCH 8/8] python-pyroute: Add support for python3
Date: Thu, 1 Jun 2017 09:42:54 -0700 [thread overview]
Message-ID: <1496335374-25575-8-git-send-email-moritz.fischer@ettus.com> (raw)
In-Reply-To: <1496335374-25575-1-git-send-email-moritz.fischer@ettus.com>
Extend recipe to support python3
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
---
.../recipes-devtools/python/python-pyroute2.inc | 26 ++++++++++++++++++++++
.../python/python-pyroute2_0.3.22.bb | 26 ++--------------------
.../python/python3-pyroute2_0.3.22.bb | 2 ++
3 files changed, 30 insertions(+), 24 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python-pyroute2.inc
create mode 100644 meta-python/recipes-devtools/python/python3-pyroute2_0.3.22.bb
diff --git a/meta-python/recipes-devtools/python/python-pyroute2.inc b/meta-python/recipes-devtools/python/python-pyroute2.inc
new file mode 100644
index 0000000..da1d4cd
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-pyroute2.inc
@@ -0,0 +1,26 @@
+SUMMARY = "A pure Python netlink and Linux network configuration library"
+LICENSE = "GPLv2 & Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+ file://LICENSE.Apache.v2;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+SRC_URI[md5sum] = "733adb362b6603c7269c0b3df3045a55"
+SRC_URI[sha256sum] = "5cdf44656cf623369f0cbf183d9d14a1a50ebdffbd50d4e30ffda62c0a05d7b3"
+
+SRC_URI += "file://import-simplejson-as-json.patch"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/python-pyroute2:"
+
+inherit pypi
+
+RDEPENDS_${PN} += "\
+ ${PYTHON_PN}-distutils \
+ ${PYTHON_PN}-simplejson \
+ ${PYTHON_PN}-multiprocessing \
+ ${PYTHON_PN}-io ${PYTHON_PN}-pprint \
+ ${PYTHON_PN}-pickle \
+ ${PYTHON_PN}-logging \
+ ${PYTHON_PN}-threading \
+ ${PYTHON_PN}-textutils \
+ ${PYTHON_PN}-subprocess \
+ ${PYTHON_PN}-netclient \
+"
diff --git a/meta-python/recipes-devtools/python/python-pyroute2_0.3.22.bb b/meta-python/recipes-devtools/python/python-pyroute2_0.3.22.bb
index 79d3bdd..7b9c8e0 100644
--- a/meta-python/recipes-devtools/python/python-pyroute2_0.3.22.bb
+++ b/meta-python/recipes-devtools/python/python-pyroute2_0.3.22.bb
@@ -1,24 +1,2 @@
-SUMMARY = "A pure Python netlink and Linux network configuration library"
-LICENSE = "GPLv2 & Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
- file://LICENSE.Apache.v2;md5=3b83ef96387f14655fc854ddc3c6bd57"
-
-SRC_URI[md5sum] = "733adb362b6603c7269c0b3df3045a55"
-SRC_URI[sha256sum] = "5cdf44656cf623369f0cbf183d9d14a1a50ebdffbd50d4e30ffda62c0a05d7b3"
-
-SRC_URI += "file://import-simplejson-as-json.patch"
-
-inherit pypi setuptools
-
-RDEPENDS_${PN} += "\
- python-distutils \
- python-simplejson \
- python-multiprocessing \
- python-io python-pprint \
- python-pickle \
- python-logging \
- python-threading \
- python-textutils \
- python-subprocess \
- python-netclient \
-"
+require python-pyroute2.inc
+inherit setuptools
diff --git a/meta-python/recipes-devtools/python/python3-pyroute2_0.3.22.bb b/meta-python/recipes-devtools/python/python3-pyroute2_0.3.22.bb
new file mode 100644
index 0000000..a23e72c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pyroute2_0.3.22.bb
@@ -0,0 +1,2 @@
+require python-pyroute2.inc
+inherit setuptools3
--
2.7.4
next prev parent reply other threads:[~2017-06-01 16:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-01 16:42 [meta-python][PATCH 1/8] python-pyudev: Add possibility to build python3-pyudev Moritz Fischer
2017-06-01 16:42 ` [meta-python][PATCH 2/8] python-greenlet: Add support for python3 Moritz Fischer
2017-06-01 16:42 ` [meta-python][PATCH 3/8] python-msgpack: " Moritz Fischer
2017-06-01 16:42 ` [meta-python][PATCH 4/8] python-gevent: " Moritz Fischer
2017-06-01 16:42 ` [meta-python][PATCH 5/8] python-gsocketpool: " Moritz Fischer
2017-06-01 16:42 ` [meta-python][PATCH 6/8] python-mprpc: " Moritz Fischer
2017-06-01 16:42 ` [meta-python][PATCH 7/8] python-netaddr: " Moritz Fischer
2017-06-01 16:42 ` Moritz Fischer [this message]
2017-06-02 19:01 ` [meta-python][PATCH 1/8] python-pyudev: Add possibility to build python3-pyudev Moritz Fischer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1496335374-25575-8-git-send-email-moritz.fischer@ettus.com \
--to=moritz.fischer@ettus.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=paul.eggleton@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.