Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \ |
| 2 | It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \ |
| 3 | and the messy, low-level world of C." |
| 4 | SECTION = "devel/python" |
| 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 7 | PYPI_PACKAGE = "Cython" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 8 | BBCLASSEXTEND = "native nativesdk" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 9 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 10 | SRC_URI[md5sum] = "24f6a7e0e6691fbecf5880f38cdf880e" |
| 11 | SRC_URI[sha256sum] = "55d081162191b7c11c7bfcb7c68e913827dfd5de6ecdbab1b99dab190586c1e8" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 12 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 13 | inherit pypi |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 15 | RDEPENDS_${PN}_class-target += "\ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | ${PYTHON_PN}-misc \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 17 | ${PYTHON_PN}-netserver \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 18 | ${PYTHON_PN}-pkgutil \ |
| 19 | ${PYTHON_PN}-pyparsing \ |
| 20 | ${PYTHON_PN}-setuptools \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 21 | ${PYTHON_PN}-shell \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 22 | ${PYTHON_PN}-xml \ |
| 23 | " |
| 24 | |
| 25 | RDEPENDS_${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 \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 33 | " |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 34 | |
| 35 | do_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 | } |