mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-02-06 11:40:20 +00:00
python3-kivy: Remove buildpaths from comments in generated C sources
Cython does not provide a direct option to disable or customize the metadata written in the generated C files. The metadata includes information like the Cython version and absolute paths to the original Cython files, which can be problematic for doing reproducible builds Therefore edit out these comments from the cython generated C files they are nicely tucked between two known tags at the top of file. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Armin Kuster <akuster@mvista.com>
This commit is contained in:
@@ -70,3 +70,10 @@ RDEPENDS:${PN} = " \
|
||||
python3-pillow \
|
||||
python3-pygments \
|
||||
"
|
||||
|
||||
do_compile:append() {
|
||||
for f in `find ${B} -name *.c`
|
||||
do
|
||||
sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d" $f
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user