summaryrefslogtreecommitdiff
path: root/upstream-layers/openembedded-core/meta/classes-recipe/cython.bbclass
blob: 9ae7a2913457106a5edaf219d2d4eeb883d68054 (plain)
1
2
3
4
5
6
7
8
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"
}