dev-python/protobuf: Revert incorrect namespace backport from 6.x

Upstream changed the way namespaces are installed in 6.x, but 5.x
still uses the deprecated `namespace_packages=` key.  Revert
the `__init__.py` removal to fix installing packages and reenable
the old eclass logic.

Bug: https://bugs.gentoo.org/956779
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-06-01 15:35:31 +02:00
parent 182ab2f269
commit 1e13cb1943
2 changed files with 0 additions and 14 deletions

View File

@@ -27,10 +27,3 @@ SRC_URI="
LICENSE="BSD"
SLOT="0/$(ver_cut 1-3)"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
src_prepare() {
distutils-r1_src_prepare
# strip old-style namespace
rm google/__init__.py || die
}

View File

@@ -27,10 +27,3 @@ SRC_URI="
LICENSE="BSD"
SLOT="0/$(ver_cut 1-3)"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
src_prepare() {
distutils-r1_src_prepare
# strip old-style namespace
rm google/__init__.py || die
}