blob: b1e71f3ccd5c1fdf8c6ba4b9382694b2a7a5aaa1 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001DESCRIPTION = "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 \
3and the messy, low-level world of C."
4SECTION = "devel/python"
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
7PYPI_PACKAGE = "Cython"
8BBCLASSEXTEND = "native nativesdk"
9
Andrew Geisslerb7d28612020-07-24 16:15:54 -050010SRC_URI[sha256sum] = "e57acb89bd55943c8d8bf813763d20b9099cc7165c0f16b707631a7654be9cad"
Andrew Geissler82c905d2020-04-13 13:39:40 -050011UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
12
13inherit pypi
14
15RDEPENDS_${PN}_class-target += "\
16 ${PYTHON_PN}-misc \
17 ${PYTHON_PN}-netserver \
18 ${PYTHON_PN}-pkgutil \
19 ${PYTHON_PN}-pyparsing \
20 ${PYTHON_PN}-setuptools \
21 ${PYTHON_PN}-shell \
22 ${PYTHON_PN}-xml \
23"
24
25RDEPENDS_${PN}_class-nativesdk += "\
26 nativesdk-${PYTHON_PN}-misc \
27 nativesdk-${PYTHON_PN}-netserver \
28 nativesdk-${PYTHON_PN}-pkgutil \
29 nativesdk-${PYTHON_PN}-pyparsing \
30 nativesdk-${PYTHON_PN}-setuptools \
31 nativesdk-${PYTHON_PN}-shell \
32 nativesdk-${PYTHON_PN}-xml \
33"
34
35do_install_append() {
36 # Make sure we use /usr/bin/env python
37 for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
38 sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
39 done
40}