blob: 5a8ec2a0ff1a8c531f74cf52d65030f63b2df2d7 [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"
8LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
9PYPI_PACKAGE = "Cython"
10BBCLASSEXTEND = "native nativesdk"
11
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050012SRC_URI[sha256sum] = "cdf04d07c3600860e8c2ebaad4e8f52ac3feb212453c1764a49ac08c827e8443"
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 += "\
Andrew Geissler82c905d2020-04-13 13:39:40 -050018 ${PYTHON_PN}-misc \
19 ${PYTHON_PN}-netserver \
20 ${PYTHON_PN}-pkgutil \
21 ${PYTHON_PN}-pyparsing \
22 ${PYTHON_PN}-setuptools \
23 ${PYTHON_PN}-shell \
24 ${PYTHON_PN}-xml \
25"
26
Patrick Williams213cb262021-08-07 19:21:33 -050027RDEPENDS:${PN}:class-nativesdk += "\
Andrew Geissler82c905d2020-04-13 13:39:40 -050028 nativesdk-${PYTHON_PN}-misc \
29 nativesdk-${PYTHON_PN}-netserver \
30 nativesdk-${PYTHON_PN}-pkgutil \
31 nativesdk-${PYTHON_PN}-pyparsing \
32 nativesdk-${PYTHON_PN}-setuptools \
33 nativesdk-${PYTHON_PN}-shell \
34 nativesdk-${PYTHON_PN}-xml \
35"
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
40 sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
41 done
42}