[packages/python-nose] - hacked for setuptools without 2to3 support
qboosh
qboosh at pld-linux.org
Fri Sep 2 22:11:25 CEST 2022
commit ca73f739ecc6972be710dad7cecdf83e83668418
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Sep 2 22:11:33 2022 +0200
- hacked for setuptools without 2to3 support
python-nose.spec | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/python-nose.spec b/python-nose.spec
index f2bd661..d06daf5 100644
--- a/python-nose.spec
+++ b/python-nose.spec
@@ -29,6 +29,7 @@ BuildRequires: python3-setuptools
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: sed >= 4.0
%if %{with tests}
BuildRequires: sphinx-pdg-2 >= 1.0
%endif
@@ -88,6 +89,9 @@ Dokumentacja użytkowa i API modułu Pythona nose.
%prep
%setup -qn %{module}-%{version}
+# no longer supported by python3-setuptools
+%{__sed} -i -e "s/setup3lib/setuptools/;s/'use_2to3': True,//" setup.py
+
%build
%if %{with python2}
%py_build
@@ -102,6 +106,10 @@ cd ..
%endif
%if %{with python3}
+# 2to3 no longer supported by python3-setuptools
+install -d build-3/lib
+2to3-%{py3_ver} -w -n --no-diffs nose -o build-3/lib/nose
+
%py3_build
%if %{with tests}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-nose.git/commitdiff/ca73f739ecc6972be710dad7cecdf83e83668418
More information about the pld-cvs-commit
mailing list