1SUMMARY = "The Cython language" 2HOMEPAGE = "https://pypi.org/project/Cython/" 3DESCRIPTION = "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=61c3ee8961575861fa86c7e62bc9f69c" 9PYPI_PACKAGE = "Cython" 10BBCLASSEXTEND = "native nativesdk" 11 12SRC_URI[sha256sum] = "a2d354f059d1f055d34cfaa62c5b68bc78ac2ceab6407148d47fb508cf3ba4f3" 13UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar" 14 15inherit pypi 16 17RDEPENDS:${PN}:class-target += "\ 18 python3-misc \ 19 python3-netserver \ 20 python3-pkgutil \ 21 python3-pyparsing \ 22 python3-setuptools \ 23 python3-shell \ 24 python3-xml \ 25" 26 27RDEPENDS:${PN}:class-nativesdk += "\ 28 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 \ 35" 36 37do_install:append() { 38 # 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 python3|' $PYTHSCRIPT 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 45} 46