mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 20:59:42 +01:00
Some Python packages, such as python3-frozenlist, generate .cpp files with cython so we should also process those. Frustratingly this doesn't actually solve the reproducible problem with frozenlist as the path is a temporary directory... (From OE-Core rev: 07f156731a9dd7cade56e1d64444dafa18f57e6f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 lines
382 B
Plaintext
9 lines
382 B
Plaintext
DEPENDS:append = " python3-cython-native"
|
|
|
|
do_compile[postfuncs] = "strip_cython_metadata"
|
|
strip_cython_metadata() {
|
|
# Remove the Cython Metadata headers that we don't need after the build, and
|
|
# may contain build paths.
|
|
find ${S} \( -name "*.c" -o -name "*.cpp" \) -print0 | xargs --no-run-if-empty --null sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d"
|
|
}
|