python3-pycocotools: Remove absolute paths from comments

_mask.c is generated by cython and encodes sourcepaths into
comments which are absolute. Edit them out.

Fixes buildpaths QA errors

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2024-08-24 10:04:31 -07:00
parent 97eee44e7d
commit 8648720c00
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -11,3 +11,7 @@ SRC_URI[sha256sum] = "8f2bcedb786ba26c367a3680f9c4eb5b2ad9dccb2b34eaeb205e0a021e
DEPENDS = "python3-cython-native python3-numpy-native virtual/crypt"
RDEPENDS:${PN} = "python3-matplotlib python3-pillow python3-profile"
do_compile:append() {
sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d" ${B}/pycocotools/_mask.c
}