[sympy/f14/master] fix a python 2.7 incompatibility
dmalcolm
dmalcolm at fedoraproject.org
Sat Jul 31 11:18:14 UTC 2010
commit 11e8aa8785b8830976b8bd311afcaecf61ec745f
Author: David Malcolm <dmalcolm at redhat.com>
Date: Sat Jul 31 07:20:44 2010 -0400
fix a python 2.7 incompatibility
sympy-python27.patch | 13 +++++++++++++
sympy.spec | 11 ++++++++++-
2 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/sympy-python27.patch b/sympy-python27.patch
new file mode 100644
index 0000000..fbdbbda
--- /dev/null
+++ b/sympy-python27.patch
@@ -0,0 +1,13 @@
+diff --git a/sympy/utilities/runtests.py b/sympy/utilities/runtests.py
+index 65f870a..6aaf935 100644
+--- a/sympy/utilities/runtests.py
++++ b/sympy/utilities/runtests.py
+@@ -779,7 +779,7 @@ class PyTestReporter(Reporter):
+ self.write_center("test process starts")
+ executable = sys.executable
+ v = sys.version_info
+- python_version = "%s.%s.%s-%s-%s" % v
++ python_version = "%s.%s.%s-%s-%s" % tuple(v)
+ self.write("executable: %s (%s)\n\n" % (executable, python_version))
+ self._t_start = clock()
+
diff --git a/sympy.spec b/sympy.spec
index 32a15fb..1378d55 100644
--- a/sympy.spec
+++ b/sympy.spec
@@ -2,7 +2,7 @@
Name: sympy
Version: 0.6.7
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A Python library for symbolic mathematics
Group: Development/Languages
License: BSD
@@ -11,6 +11,11 @@ Source0: http://sympy.googlecode.com/files/%{name}-%{version}.tar.gz
# Upstream tried to graft in another project as a private copy; we rip
# it out (rhbz# 551576):
Patch0: sympy-0.6.7-strip-internal-mpmath.diff
+
+# Fix a python 2.7 incompatibility
+# Not yet sent upstream:
+Patch1: sympy-python27.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -28,6 +33,7 @@ Python and does not require any external libraries.
%setup -q
%patch0 -p1 -b .mpmath
rm -rf sympy/mpmath doc/src/modules/mpmath
+%patch1 -p1
%build
python setup.py build
@@ -53,6 +59,9 @@ rm -rf %{buildroot}
%{_mandir}/man1/isympy.1*
%changelog
+* Sat Jul 31 2010 David Malcolm <dmalcolm at redhat.com> - 0.6.7-4
+- fix a python 2.7 incompatibility
+
* Thu Jul 22 2010 David Malcolm <dmalcolm at redhat.com> - 0.6.7-3
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
More information about the scm-commits
mailing list