summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-python/recipes-devtools/python/python3-cython_0.29.6.bb
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2019-07-08 15:24:31 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-07-08 16:34:48 +0300
commit2939317205d1f39eefebec7bd6ba01faaa0f9369 (patch)
tree45f4ba1e0bca7dc394b7fa77ca3122f1121a6a55 /meta-openembedded/meta-python/recipes-devtools/python/python3-cython_0.29.6.bb
parent963b1beb7e04e1c6c55bea2104b856e3121202db (diff)
downloadopenbmc-2.7.0-rc1.tar.xz
reset upstream subtrees to warrior HEAD2.7.0-rc1
Reset the following subtrees on warrior HEAD: meta-security: 4f7be0d252(warrior) poky: 38d5c8ea98(warrior) meta-raspberrypi: 6c73694912(warrior) meta-openembedded: 6fa72d587a(warrior) Change-Id: Id2550baeb90de14bdd9ee8c06f2c619fc719bc68 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-cython_0.29.6.bb')
-rw-r--r--meta-openembedded/meta-python/recipes-devtools/python/python3-cython_0.29.6.bb18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-cython_0.29.6.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-cython_0.29.6.bb
new file mode 100644
index 0000000000..2ce6bdbd68
--- /dev/null
+++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-cython_0.29.6.bb
@@ -0,0 +1,18 @@
+inherit setuptools3
+require python-cython.inc
+
+RDEPENDS_${PN} += "\
+ python3-setuptools \
+"
+
+# running build_ext a second time during install fails, because Python
+# would then attempt to import cythonized modules built for the target
+# architecture.
+DISTUTILS_INSTALL_ARGS += "--skip-build"
+
+do_install_append() {
+ # rename scripts that would conflict with the Python 2 build of Cython
+ mv ${D}${bindir}/cython ${D}${bindir}/cython3
+ mv ${D}${bindir}/cythonize ${D}${bindir}/cythonize3
+ mv ${D}${bindir}/cygdb ${D}${bindir}/cygdb3
+}