summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb b/meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb
index 9695880d02..c7e1f3c3f2 100644
--- a/meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb
+++ b/meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb
@@ -36,3 +36,11 @@ DISTUTILS_INSTALL_ARGS += "--cpp_implementation"
36do_compile:prepend:class-native () { 36do_compile:prepend:class-native () {
37 export KOKORO_BUILD_NUMBER="1" 37 export KOKORO_BUILD_NUMBER="1"
38} 38}
39
40do_install:append () {
41 # Remove useless and problematic .pth file. python3-protobuf is installed in the standard
42 # location of site packages. No need for such .pth file.
43 # NOTE: do not drop this removal until the following issue in upstream cpython is resolved:
44 # https://github.com/python/cpython/issues/122220
45 rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/protobuf-*-nspkg.pth
46}