diff options
Diffstat (limited to 'meta-python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb | 8 |
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 b9b03badd0..c234ce5773 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 | |||
| @@ -35,3 +35,11 @@ DISTUTILS_INSTALL_ARGS += "--cpp_implementation" | |||
| 35 | do_compile:prepend:class-native () { | 35 | do_compile:prepend:class-native () { |
| 36 | export KOKORO_BUILD_NUMBER="1" | 36 | export KOKORO_BUILD_NUMBER="1" |
| 37 | } | 37 | } |
| 38 | |||
| 39 | do_install:append () { | ||
| 40 | # Remove useless and problematic .pth file. python3-protobuf is installed in the standard | ||
| 41 | # location of site packages. No need for such .pth file. | ||
| 42 | # NOTE: do not drop this removal until the following issue in upstream cpython is resolved: | ||
| 43 | # https://github.com/python/cpython/issues/122220 | ||
| 44 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/protobuf-*-nspkg.pth | ||
| 45 | } | ||
