summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-cython.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python-cython.inc')
-rw-r--r--meta/recipes-devtools/python/python-cython.inc45
1 files changed, 25 insertions, 20 deletions
diff --git a/meta/recipes-devtools/python/python-cython.inc b/meta/recipes-devtools/python/python-cython.inc
index da6eba254f..87a2e88a1a 100644
--- a/meta/recipes-devtools/python/python-cython.inc
+++ b/meta/recipes-devtools/python/python-cython.inc
@@ -1,40 +1,45 @@
1SUMMARY = "The Cython language"
2HOMEPAGE = "https://pypi.org/project/Cython/"
1DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \ 3DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \
2It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \ 4It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \
3and the messy, low-level world of C." 5and the messy, low-level world of C."
4SECTION = "devel/python" 6SECTION = "devel/python"
5LICENSE = "Apache-2.0" 7LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa" 8LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
7PYPI_PACKAGE = "Cython" 9PYPI_PACKAGE = "Cython"
8BBCLASSEXTEND = "native nativesdk" 10BBCLASSEXTEND = "native nativesdk"
9 11
10SRC_URI[sha256sum] = "df6b83c7a6d1d967ea89a2903e4a931377634a297459652e4551734c48195406" 12SRC_URI[sha256sum] = "dcc96739331fb854dcf503f94607576cfe8488066c61ca50dfd55836f132de99"
11UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar" 13UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
12 14
13inherit pypi 15inherit pypi
14 16
15RDEPENDS_${PN}_class-target += "\ 17RDEPENDS:${PN}:class-target += "\
16 ${PYTHON_PN}-misc \ 18 python3-misc \
17 ${PYTHON_PN}-netserver \ 19 python3-netserver \
18 ${PYTHON_PN}-pkgutil \ 20 python3-pkgutil \
19 ${PYTHON_PN}-pyparsing \ 21 python3-pyparsing \
20 ${PYTHON_PN}-setuptools \ 22 python3-setuptools \
21 ${PYTHON_PN}-shell \ 23 python3-shell \
22 ${PYTHON_PN}-xml \ 24 python3-xml \
23" 25"
24 26
25RDEPENDS_${PN}_class-nativesdk += "\ 27RDEPENDS:${PN}:class-nativesdk += "\
26 nativesdk-${PYTHON_PN}-misc \ 28 nativesdk-python3-misc \
27 nativesdk-${PYTHON_PN}-netserver \ 29 nativesdk-python3-netserver \
28 nativesdk-${PYTHON_PN}-pkgutil \ 30 nativesdk-python3-pkgutil \
29 nativesdk-${PYTHON_PN}-pyparsing \ 31 nativesdk-python3-pyparsing \
30 nativesdk-${PYTHON_PN}-setuptools \ 32 nativesdk-python3-setuptools \
31 nativesdk-${PYTHON_PN}-shell \ 33 nativesdk-python3-shell \
32 nativesdk-${PYTHON_PN}-xml \ 34 nativesdk-python3-xml \
33" 35"
34 36
35do_install_append() { 37do_install:append() {
36 # Make sure we use /usr/bin/env python 38 # Make sure we use /usr/bin/env python
37 for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do 39 for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
38 sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT 40 sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT
39 done 41 done
42
43 # remove build paths from generated sources
44 sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c
40} 45}