[python-mpmath] Fix check phase.

Jussi Lehtola jussilehtola at fedoraproject.org
Mon Jul 23 08:03:30 UTC 2012


commit 1feb84213ca12f143633c6444b6bf542f40a7213
Author: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date:   Mon Jul 23 11:00:38 2012 +0300

    Fix check phase.

 python-mpmath.spec |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/python-mpmath.spec b/python-mpmath.spec
index eb6ee06..918e6f8 100644
--- a/python-mpmath.spec
+++ b/python-mpmath.spec
@@ -2,7 +2,7 @@
 
 Name:		python-mpmath
 Version:	0.17
-Release:	4%{?dist}
+Release:	5%{?dist}
 Summary:	A pure Python library for multiprecision floating-point arithmetic
 Group:		Applications/Engineering
 License:	BSD
@@ -18,8 +18,6 @@ BuildRequires:	python-devel
 BuildRequires:	dvipng
 BuildRequires:	python-sphinx
 BuildRequires:	tex(latex)
-# For running test
-BuildRequires:	python-py
 
 
 %description
@@ -71,11 +69,12 @@ python build.py
 rm -rf %{buildroot}
 python setup.py install -O1 --skip-build --root %{buildroot}
 # Get rid of python 3 version that fails to byte-compile
-rm %{buildroot}%{python_sitelib}/mpmath/libmp/exec_py3.py
+rm %{buildroot}%{python_sitelib}/mpmath/libmp/exec_py3.py*
 
 %check
+export PYTHONPATH=`pwd`/build/lib
 cd build/lib/mpmath/tests/
-py.test
+python runtests.py
 
 %clean
 rm -rf %{buildroot}
@@ -91,6 +90,9 @@ rm -rf %{buildroot}
 %doc doc/build/*
 
 %changelog
+* Mon Jul 23 2012 Jussi Lehtola <jussilehtola at fedoraproject.org> - 0.17-5
+- Fix %%check phase.
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.17-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list