mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

This prevents runtime failure "bad interpreter: No such file or directory" from running native cython when the native python is installed at a long path, exceeding the 128-character limit for shebang lines on linux. Exceeding the limit was already possible when using a long path for topdir, but it got easier to exceed after the switch to per-recipe sysroots. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
27 lines
865 B
PHP
27 lines
865 B
PHP
DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \
|
|
It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \
|
|
and the messy, low-level world of C."
|
|
SECTION = "devel/python"
|
|
LICENSE = "Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
|
|
PYPI_PACKAGE = "Cython"
|
|
BBCLASSEXTEND = "native"
|
|
|
|
SRC_URI[md5sum] = "642c81285e1bb833b14ab3f439964086"
|
|
SRC_URI[sha256sum] = "f141d1f9c27a07b5a93f7dc5339472067e2d7140d1c5a9e20112a5665ca60306"
|
|
|
|
inherit pypi
|
|
|
|
RDEPENDS_${PN}_class-target += "\
|
|
${PYTHON_PN}-netserver \
|
|
${PYTHON_PN}-subprocess \
|
|
${PYTHON_PN}-shell \
|
|
"
|
|
|
|
do_install_append() {
|
|
# Make sure we use /usr/bin/env python
|
|
for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
|
|
sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
|
|
done
|
|
}
|