summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/cython.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-recipe/cython.bbclass')
-rw-r--r--meta/classes-recipe/cython.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes-recipe/cython.bbclass b/meta/classes-recipe/cython.bbclass
new file mode 100644
index 0000000000..dd9fc732bc
--- /dev/null
+++ b/meta/classes-recipe/cython.bbclass
@@ -0,0 +1,8 @@
1DEPENDS:append = " python3-cython-native"
2
3do_compile[postfuncs] = "strip_cython_metadata"
4strip_cython_metadata() {
5 # Remove the Cython Metadata headers that we don't need after the build, and
6 # may contain build paths.
7 find ${S} -name "*.c" -print0 | xargs --no-run-if-empty --null sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d"
8}