diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-04-25 19:28:10 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-29 15:02:18 +0100 |
| commit | 1407d1460cd2113be60192018839f5115953bd49 (patch) | |
| tree | 4527b7c55694f6e260f2686889b2357a723057df /meta/recipes-devtools/python/python3-cython_0.29.14.bb | |
| parent | 182c1af2e632a34decfbef437b3b7995db898126 (diff) | |
| download | poky-1407d1460cd2113be60192018839f5115953bd49.tar.gz | |
python3-cython: add from meta-oe
This is needed by new python3-numpy.
(From OE-Core rev: 5b62f1c313d8b9a74f49ef30e7fa5ff489ae3e84)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-cython_0.29.14.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-cython_0.29.14.bb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-cython_0.29.14.bb b/meta/recipes-devtools/python/python3-cython_0.29.14.bb new file mode 100644 index 0000000000..2ce6bdbd68 --- /dev/null +++ b/meta/recipes-devtools/python/python3-cython_0.29.14.bb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | inherit setuptools3 | ||
| 2 | require python-cython.inc | ||
| 3 | |||
| 4 | RDEPENDS_${PN} += "\ | ||
| 5 | python3-setuptools \ | ||
| 6 | " | ||
| 7 | |||
| 8 | # running build_ext a second time during install fails, because Python | ||
| 9 | # would then attempt to import cythonized modules built for the target | ||
| 10 | # architecture. | ||
| 11 | DISTUTILS_INSTALL_ARGS += "--skip-build" | ||
| 12 | |||
| 13 | do_install_append() { | ||
| 14 | # rename scripts that would conflict with the Python 2 build of Cython | ||
| 15 | mv ${D}${bindir}/cython ${D}${bindir}/cython3 | ||
| 16 | mv ${D}${bindir}/cythonize ${D}${bindir}/cythonize3 | ||
| 17 | mv ${D}${bindir}/cygdb ${D}${bindir}/cygdb3 | ||
| 18 | } | ||
