blob: e54926ae6d1e4acf8e5443c06d3417583065611f [file] [log] [blame]
Andrew Geissler95ac1b82021-03-31 14:34:31 -05001SUMMARY = "The Cython language"
2HOMEPAGE = "https://pypi.org/project/Cython/"
Andrew Geissler82c905d2020-04-13 13:39:40 -05003DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \
4It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \
5and the messy, low-level world of C."
6SECTION = "devel/python"
7LICENSE = "Apache-2.0"
Patrick Williams705982a2024-01-12 09:51:57 -06008LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
Andrew Geissler82c905d2020-04-13 13:39:40 -05009PYPI_PACKAGE = "Cython"
10BBCLASSEXTEND = "native nativesdk"
11
Patrick Williams56b44a92024-01-19 08:49:29 -060012SRC_URI[sha256sum] = "8333423d8fd5765e7cceea3a9985dd1e0a5dfeb2734629e1a2ed2d6233d39de6"
Andrew Geissler82c905d2020-04-13 13:39:40 -050013UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
14
15inherit pypi
16
Patrick Williams213cb262021-08-07 19:21:33 -050017RDEPENDS:${PN}:class-target += "\
Patrick Williams73bd93f2024-02-20 08:07:48 -060018 python3-misc \
19 python3-netserver \
20 python3-pkgutil \
21 python3-pyparsing \
22 python3-setuptools \
23 python3-shell \
24 python3-xml \
Andrew Geissler82c905d2020-04-13 13:39:40 -050025"
26
Patrick Williams213cb262021-08-07 19:21:33 -050027RDEPENDS:${PN}:class-nativesdk += "\
Patrick Williams73bd93f2024-02-20 08:07:48 -060028 nativesdk-python3-misc \
29 nativesdk-python3-netserver \
30 nativesdk-python3-pkgutil \
31 nativesdk-python3-pyparsing \
32 nativesdk-python3-setuptools \
33 nativesdk-python3-shell \
34 nativesdk-python3-xml \
Andrew Geissler82c905d2020-04-13 13:39:40 -050035"
36
Patrick Williams213cb262021-08-07 19:21:33 -050037do_install:append() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050038 # Make sure we use /usr/bin/env python
39 for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
Patrick Williams73bd93f2024-02-20 08:07:48 -060040 sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT
Andrew Geissler82c905d2020-04-13 13:39:40 -050041 done
Patrick Williams705982a2024-01-12 09:51:57 -060042
43 # remove build paths from generated sources
44 sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c
Andrew Geissler82c905d2020-04-13 13:39:40 -050045}