[packages/python-netifaces] - don't use obsolete setuptools test command
qboosh
qboosh at pld-linux.org
Sun Nov 2 18:37:37 CET 2025
commit 92ab46a53d59292916b31ccb244b39b56e3ed429
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 2 18:37:38 2025 +0100
- don't use obsolete setuptools test command
python-netifaces.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/python-netifaces.spec b/python-netifaces.spec
index 99a53f1..9de6e28 100644
--- a/python-netifaces.spec
+++ b/python-netifaces.spec
@@ -58,13 +58,19 @@ adresach z interfejsów sieciowych.
%if %{with python2}
%py_build
-%{?with_tests:%{__python} setup.py test}
+%if %{with tests}
+PYTHONPATH=$(echo $(pwd)/build-2/lib.*) \
+%{__python} test.py
+%endif
%endif
%if %{with python3}
%py3_build
-%{?with_tests:%{__python3} setup.py test}
+%if %{with tests}
+PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
+%{__python3} test.py
+%endif
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-netifaces.git/commitdiff/92ab46a53d59292916b31ccb244b39b56e3ed429
More information about the pld-cvs-commit
mailing list