guru/dev-python/pure-protobuf/files/pure-protobuf-do-not-install-tests.patch
Andrew Ammerlaan 5a2e27ff54
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>
2020-05-04 10:38:13 +02:00

14 lines
438 B
Diff

diff --git a/setup.py b/setup.py
index deb6c95..2ae6c69 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ setup(
author='Pavel Perestoronin',
author_email='eigenein@gmail.com',
url='https://github.com/eigenein/protobuf',
- packages=find_packages(exclude=['tests']),
+ packages=find_packages(exclude=['tests*']),
zip_safe=True,
install_requires=[
'dataclasses>=0.6,<1.0; python_version < "3.7"',