[python-mpmath/f13/master] Update to 0.17.

Jussi Lehtola jussilehtola at fedoraproject.org
Sun Feb 6 14:03:34 UTC 2011


commit aa462d6670dec66fd1b15cc169177ab76ca85b50
Author: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date:   Sun Feb 6 16:03:30 2011 +0200

    Update to 0.17.

 python-mpmath-0.17-build.patch |   33 +++++++++++++++++++++++++++++++++
 python-mpmath.spec             |   17 +++++++++++------
 sources                        |    3 +--
 3 files changed, 45 insertions(+), 8 deletions(-)
---
diff --git a/python-mpmath-0.17-build.patch b/python-mpmath-0.17-build.patch
new file mode 100644
index 0000000..db397f1
--- /dev/null
+++ b/python-mpmath-0.17-build.patch
@@ -0,0 +1,33 @@
+diff -up mpmath-all-0.17/mpmath/tests/extratest_gamma.py.orig mpmath-all-0.17/mpmath/tests/extratest_gamma.py
+--- mpmath-all-0.17/mpmath/tests/extratest_gamma.py.orig	2011-02-01 23:17:45.000000000 +0200
++++ mpmath-all-0.17/mpmath/tests/extratest_gamma.py	2011-02-06 13:42:49.491701000 +0200
+@@ -47,7 +47,7 @@ def check(name, func, z, y):
+         if raise_:
+             raise SystemExit
+     if not err:
+-        print("%s ok;" % name, end=' ')
++        sys.stdout.write("%s ok; " % name)
+ 
+ def testcase(case):
+     z, result = case
+diff -up mpmath-all-0.17/mpmath/tests/torture.py.orig mpmath-all-0.17/mpmath/tests/torture.py
+--- mpmath-all-0.17/mpmath/tests/torture.py.orig	2011-02-01 23:17:45.000000000 +0200
++++ mpmath-all-0.17/mpmath/tests/torture.py	2011-02-06 13:43:52.513485746 +0200
+@@ -77,7 +77,7 @@ def test_asymp(f, maxdps=150, verbose=Fa
+         exponents += [-1000, -100, -50, 50, 100, 1000]
+     for n in exponents:
+         if verbose:
+-            print(".", end=' ')
++            sys.stdout.write(". ")
+         mp.dps = 25
+         xpos = mpf(10)**n / 1.1287
+         xneg = -xpos
+@@ -209,7 +209,7 @@ def testit(line):
+     if filt in line:
+         print(line)
+         t1 = clock()
+-        exec_(line)
++        exec_(line, globals(), locals())
+         t2 = clock()
+         elapsed = t2-t1
+         print("Time:", elapsed, "for", line, "(OK)")
diff --git a/python-mpmath.spec b/python-mpmath.spec
index fc4ef6e..f3c66f1 100644
--- a/python-mpmath.spec
+++ b/python-mpmath.spec
@@ -1,16 +1,15 @@
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:		python-mpmath
-Version:	0.16
+Version:	0.17
 Release:	1%{?dist}
 Summary:	A pure Python library for multiprecision floating-point arithmetic
 Group:		Applications/Engineering
 License:	BSD
 URL:		http://code.google.com/p/mpmath/
-# Source tarball
-Source0:	http://mpmath.googlecode.com/files/mpmath-%{version}.tar.gz
-# Documentation
-Source1:	http://mpmath.googlecode.com/files/mpmath-docsrc-%{version}.tar.gz
+Source0:	http://mpmath.googlecode.com/files/mpmath-all-%{version}.tar.gz
+# Patch to fix build, already reported and fixed upstream
+Patch0:		python-mpmath-0.17-build.patch
 BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildArch:	noarch
 
@@ -45,7 +44,8 @@ This package contains the HTML documentation for %{name}.
 
 
 %prep
-%setup -q -a1 -n mpmath-%{version}
+%setup -q -n mpmath-all-%{version}
+%patch0 -p1 -b .buildfix
 # Convert line encodings 
 for doc in LICENSE CHANGES PKG-INFO README mpmath/tests/runtests.py; do
  sed "s|\r||g" $doc > $doc.new && \
@@ -70,6 +70,8 @@ python build.py
 %install
 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
 
 %check
 cd build/lib/mpmath/tests/
@@ -89,6 +91,9 @@ rm -rf %{buildroot}
 %doc doc/build/*
 
 %changelog
+* Sun Feb 06 2011 Jussi Lehtola <jussilehtola at fedoraproject.org> - 0.17-1
+- Update to 0.17.
+
 * Sun Sep 26 2010 Jussi Lehtola <jussilehtola at fedoraproject.org> - 0.16-1
 - Update to 0.16.
 
diff --git a/sources b/sources
index b6a9ae9..f1f0d0a 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-7780f99cafd3292c0776249825d66aed  mpmath-0.16.tar.gz
-124fbe9441b52ea9fdd8fa5b1bb30329  mpmath-docsrc-0.16.tar.gz
+9b2c2a60ad0f83b8e7ffbbab90f7d6eb  mpmath-all-0.17.tar.gz


More information about the scm-commits mailing list