[oe-commits] [openembedded-core] 48/59: python3-mako: add a Python 3 recipe
git at git.openembedded.org
git at git.openembedded.org
Mon May 30 22:00:20 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit d901619e4e9d426bc6cf9cdc1fccd0b6990f4dc3
Author: Alexander Kanavin <alexander.kanavin at linux.intel.com>
AuthorDate: Wed May 11 16:36:37 2016 +0300
python3-mako: add a Python 3 recipe
This will be necessary for transiting piglit to Python 3.
Python 2 recipe should be kept as it is used by mesa (and
gobject-introspection, for now).
Signed-off-by: Alexander Kanavin <alexander.kanavin at linux.intel.com>
---
meta/recipes-devtools/python/python-mako_1.0.3.bb | 6 ++++++
.../python/{python-mako_1.0.3.bb => python3-mako_1.0.3.bb} | 8 ++++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-devtools/python/python-mako_1.0.3.bb b/meta/recipes-devtools/python/python-mako_1.0.3.bb
index 9efd700..d4f426d 100644
--- a/meta/recipes-devtools/python/python-mako_1.0.3.bb
+++ b/meta/recipes-devtools/python/python-mako_1.0.3.bb
@@ -22,3 +22,9 @@ RDEPENDS_${PN} = "python-threading \
RDEPENDS_${PN}_class-native = ""
BBCLASSEXTEND = "native nativesdk"
+
+# The same utility is packaged in python3-mako, so it would conflict
+do_install_append() {
+ rm -f ${D}${bindir}/mako-render
+ rm -df ${D}${bindir}
+}
diff --git a/meta/recipes-devtools/python/python-mako_1.0.3.bb b/meta/recipes-devtools/python/python3-mako_1.0.3.bb
similarity index 82%
copy from meta/recipes-devtools/python/python-mako_1.0.3.bb
copy to meta/recipes-devtools/python/python3-mako_1.0.3.bb
index 9efd700..c770603 100644
--- a/meta/recipes-devtools/python/python-mako_1.0.3.bb
+++ b/meta/recipes-devtools/python/python3-mako_1.0.3.bb
@@ -13,11 +13,11 @@ UPSTREAM_CHECK_REGEX = "/Mako/(?P<pver>(\d+[\.\-_]*)+)"
S = "${WORKDIR}/Mako-${PV}"
-inherit setuptools
+inherit setuptools3
-RDEPENDS_${PN} = "python-threading \
- python-netclient \
- python-html \
+RDEPENDS_${PN} = "python3-threading \
+ python3-netclient \
+ python3-html \
"
RDEPENDS_${PN}_class-native = ""
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list