mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +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:
parent
b808d471d7
commit
75612aaa3d
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user