From bf0cfd8e495e252c1848ad6bfd15b8f87fe7cb3a Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 11 Aug 2018 03:06:23 -0400 Subject: [PATCH] Remove bytecode produced by pytest. --- numpy.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/numpy.spec b/numpy.spec index 99775a8..86ec18b 100644 --- a/numpy.spec +++ b/numpy.spec @@ -236,7 +236,8 @@ ln -s %{python2_sitearch}/%{name}/core/include/numpy/ %{buildroot}/usr/include/n %check pushd doc &> /dev/null -PYTHONPATH="%{buildroot}%{python2_sitearch}" %{__python2} -c "import pkg_resources, numpy ; numpy.test(verbose=2)" \ +PYTHONPATH="%{buildroot}%{python2_sitearch}" PYTHONDONTWRITEBYTECODE=1 \ + %{__python2} -c "import pkg_resources, numpy ; numpy.test(verbose=2)" \ %ifarch s390 s390x || : %endif @@ -245,7 +246,8 @@ popd &> /dev/null %if 0%{?with_python3} pushd doc &> /dev/null -PYTHONPATH="%{buildroot}%{python3_sitearch}" %{__python3} -c "import pkg_resources, numpy ; numpy.test(verbose=2)" \ +PYTHONPATH="%{buildroot}%{python3_sitearch}" PYTHONDONTWRITEBYTECODE=1 \ + %{__python3} -c "import pkg_resources, numpy ; numpy.test(verbose=2)" \ %ifarch s390 s390x || : %endif @@ -278,9 +280,6 @@ popd &> /dev/null %exclude %{python2_sitearch}/%{name}/LICENSE.txt %{_bindir}/conv-template %{_bindir}/from-template -%ifnarch s390x -%{python2_sitearch}/numpy/__pycache__/* -%endif %files -n python2-numpy-f2py %doc docs/f2py/*.html @@ -329,6 +328,7 @@ popd &> /dev/null %changelog * Sat Aug 11 2018 Elliott Sales de Andrade - 1:1.15.0-2 - Fix broken build on s390x +- Remove bytecode produced by pytest * Tue Jul 24 2018 Gwyn Ciesla - 1:1.15.0-1 - 1.15.0