mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 19:43:24 -04:00
dev-python/pure-protobuf: patch exclude variable in setup.py
we used the python_foreach_impl function wrong
python_install is already run with python_foreach_impl,
thus the function should not be used inside python_install
for this there is python_install_all, but this is run after
python_foreach_impl python_install so we again get the
'${P} installs tests' error. Instead I just patched
a fix, this fix is also already in upstream master
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
@@ -22,11 +22,4 @@ S="${WORKDIR}/protobuf-${PV}"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_install() {
|
||||
# Package installs 'tests' package which is forbidden and likely a bug in the build system.
|
||||
rm -r tests || die
|
||||
|
||||
# Previously it did not actually install any python libs
|
||||
python_foreach_impl esetup.py install
|
||||
python_foreach_impl python_optimize
|
||||
}
|
||||
PATCHES="${FILESDIR}/${PN}-do-not-install-tests.patch"
|
||||
|
||||
Reference in New Issue
Block a user