orion pushed to sympy (epel7). "Update to 0.7.1."

notifications at fedoraproject.org notifications at fedoraproject.org
Thu May 21 16:11:36 UTC 2015


From aa125977a1060686dd71bc7ebf51e49115c6e1c1 Mon Sep 17 00:00:00 2001
From: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date: Wed, 12 Oct 2011 02:02:20 +0300
Subject: Update to 0.7.1.


diff --git a/.gitignore b/.gitignore
index 6042ed3..26ff2f3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 sympy-0.6.7.tar.gz
+/sympy-0.7.1.tar.gz
diff --git a/sources b/sources
index e5ea486..6f2f724 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d73e0a5a128f38f930d566110f4b668b  sympy-0.6.7.tar.gz
+3847b5ed5c1531bf3c1b849dc2337253  sympy-0.7.1.tar.gz
diff --git a/stripmpmath.sh b/stripmpmath.sh
new file mode 100755
index 0000000..c13e499
--- /dev/null
+++ b/stripmpmath.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+# Script for stripping traces of the bundled mpmath library
+# 2011-10-12 Jussi Lehtola
+
+# Loop 
+for i in `find . -name \*.py`; do 
+ if [[ " `grep sympy.mpmath $i`" != " " ]]; then
+  echo  $i
+  cp -a $i $i.mpmath
+  sed -i 's|sympy.mpmath|mpmath|g' $i
+ fi
+
+ if [[ " `grep 'from sympy import mpmath' $i`" != " " ]]; then
+  if [ ! -f $i.mpmath ]; then
+   echo $i
+   cp -a $i $i.mpmath
+  fi
+  sed -i 's|from sympy import mpmath|import mpmath|g' $i
+ fi
+done
diff --git a/sympy-0.6.7-strip-internal-mpmath.diff b/sympy-0.6.7-strip-internal-mpmath.diff
deleted file mode 100644
index 4fc246e..0000000
--- a/sympy-0.6.7-strip-internal-mpmath.diff
+++ /dev/null
@@ -1,366 +0,0 @@
-diff -up sympy-0.6.7/examples/advanced/pidigits.py.mpmath sympy-0.6.7/examples/advanced/pidigits.py
---- sympy-0.6.7/examples/advanced/pidigits.py.mpmath	2010-01-28 23:54:00.000000000 +0200
-+++ sympy-0.6.7/examples/advanced/pidigits.py	2010-04-27 08:52:43.405300743 +0300
-@@ -5,8 +5,8 @@ Example shows arbitrary precision using 
- computation of the digits of pi.
- """
- 
--from sympy.mpmath import libmpf
--from sympy.mpmath import functions as mpf_funs
-+from mpmath import libmpf
-+from mpmath import functions as mpf_funs
- 
- import math
- from time import clock
-diff -up sympy-0.6.7/setup.py.mpmath sympy-0.6.7/setup.py
---- sympy-0.6.7/setup.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/setup.py	2010-04-27 08:50:51.168363641 +0300
-@@ -63,11 +63,6 @@ modules = [
-     'sympy.logic',
-     'sympy.logic.algorithms',
-     'sympy.logic.utilities',
--    'sympy.mpmath',
--    'sympy.mpmath.libmp',
--    'sympy.mpmath.functions',
--    'sympy.mpmath.matrices',
--    'sympy.mpmath.calculus',
-     'sympy.polys',
-     'sympy.printing',
-     'sympy.printing.pretty',
-@@ -169,7 +164,6 @@ tests = [
-     'sympy.integrals.tests',
-     'sympy.logic.tests',
-     'sympy.matrices.tests',
--    'sympy.mpmath.tests',
-     'sympy.ntheory.tests',
-     'sympy.parsing.tests',
-     'sympy.physics.tests',
-diff -up sympy-0.6.7/sympy/core/basic.py.mpmath sympy-0.6.7/sympy/core/basic.py
---- sympy-0.6.7/sympy/core/basic.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/sympy/core/basic.py	2010-04-27 08:51:31.264239225 +0300
-@@ -1,6 +1,6 @@
- """Base class for all objects in sympy"""
- 
--import sympy.mpmath as mpmath
-+import mpmath
- 
- from decorators import _sympifyit
- from assumptions import AssumeMeths, make__get_assumption
-diff -up sympy-0.6.7/sympy/core/evalf.py.mpmath sympy-0.6.7/sympy/core/evalf.py
---- sympy-0.6.7/sympy/core/evalf.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/sympy/core/evalf.py	2010-04-27 08:50:51.169363495 +0300
-@@ -3,21 +3,21 @@ Adaptive numerical evaluation of SymPy e
- for mathematical functions.
- """
- 
--from sympy.mpmath.libmp import (from_int, from_rational, fzero, normalize,
-+from mpmath.libmp import (from_int, from_rational, fzero, normalize,
-         bitcount, round_nearest, to_str, fone, fnone, fhalf, from_float,
-         to_float, fnone, to_int, mpf_lt, mpf_sqrt, mpf_cmp, mpf_abs,
-         mpf_pow_int, mpf_shift, mpf_add, mpf_mul, mpf_neg)
- 
--import sympy.mpmath.libmp as libmp
--from sympy.mpmath.libmp.libmpf import dps_to_prec
--from sympy.mpmath import mpf, mpc, quadts, quadosc, mp, make_mpf
--from sympy.mpmath.libmp import (mpf_pi, mpf_log, mpf_pow, mpf_sin, mpf_cos,
-+import mpmath.libmp as libmp
-+from mpmath.libmp.libmpf import dps_to_prec
-+from mpmath import mpf, mpc, quadts, quadosc, mp, make_mpf
-+from mpmath.libmp import (mpf_pi, mpf_log, mpf_pow, mpf_sin, mpf_cos,
-         mpf_atan, mpf_atan2, mpf_e, mpf_exp, from_man_exp)
--from sympy.mpmath.libmp.backend import MPZ
--from sympy.mpmath import nsum
--from sympy.mpmath import inf as mpmath_inf
-+from mpmath.libmp.backend import MPZ
-+from mpmath import nsum
-+from mpmath import inf as mpmath_inf
- 
--from sympy.mpmath.libmp.gammazeta import mpf_bernoulli
-+from mpmath.libmp.gammazeta import mpf_bernoulli
- 
- import math
- 
-diff -up sympy-0.6.7/sympy/core/function.py.mpmath sympy-0.6.7/sympy/core/function.py
---- sympy-0.6.7/sympy/core/function.py.mpmath	2010-03-17 22:37:28.000000000 +0200
-+++ sympy-0.6.7/sympy/core/function.py	2010-04-27 09:32:14.636301031 +0300
-@@ -40,7 +40,7 @@ from multidimensional import vectorize
- from sympy.utilities.decorator import deprecated
- from sympy.utilities import all
- 
--from sympy import mpmath
-+import mpmath
- 
- class PoleError(Exception):
-     pass
-diff -up sympy-0.6.7/sympy/core/numbers.py.mpmath sympy-0.6.7/sympy/core/numbers.py
---- sympy-0.6.7/sympy/core/numbers.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/sympy/core/numbers.py	2010-04-27 08:50:51.170363259 +0300
-@@ -1,9 +1,9 @@
- from basic import Atom, SingletonMeta, S, Basic
- from decorators import _sympifyit
- from cache import Memoizer, cacheit, clear_cache
--import sympy.mpmath as mpmath
--import sympy.mpmath.libmp as mlib
--from sympy.mpmath.libmp import mpf_pow, mpf_pi, mpf_e, phi_fixed
-+import mpmath as mpmath
-+import mpmath.libmp as mlib
-+from mpmath.libmp import mpf_pow, mpf_pi, mpf_e, phi_fixed
- import decimal
- 
- rnd = mlib.round_nearest
-diff -up sympy-0.6.7/sympy/core/power.py.mpmath sympy-0.6.7/sympy/core/power.py
---- sympy-0.6.7/sympy/core/power.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/sympy/core/power.py	2010-04-27 09:33:29.416300946 +0300
-@@ -3,7 +3,7 @@ from sympify import _sympify
- from cache import cacheit
- from symbol import Symbol, Wild
- 
--from sympy import mpmath
-+import mpmath
- 
- from math import log as _log
- 
-diff -up sympy-0.6.7/sympy/core/sets.py.mpmath sympy-0.6.7/sympy/core/sets.py
---- sympy-0.6.7/sympy/core/sets.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/sympy/core/sets.py	2010-04-27 08:55:33.639300968 +0300
-@@ -1,6 +1,6 @@
- from basic import Basic, SingletonMeta, S
- from sympify import _sympify
--from sympy.mpmath import mpi
-+from mpmath import mpi
- 
- class Set(Basic):
-     """
-diff -up sympy-0.6.7/sympy/core/tests/test_numbers.py.mpmath sympy-0.6.7/sympy/core/tests/test_numbers.py
---- sympy-0.6.7/sympy/core/tests/test_numbers.py.mpmath	2010-03-10 00:09:45.000000000 +0200
-+++ sympy-0.6.7/sympy/core/tests/test_numbers.py	2010-04-27 09:32:39.883300975 +0300
-@@ -4,7 +4,7 @@ from sympy.core.power import integer_nth
- 
- from sympy.core.numbers import igcd, ilcm, igcdex, seterr
- from sympy.utilities.pytest import raises
--from sympy import mpmath
-+import mpmath
- 
- def test_seterr():
-     seterr(divide = True)
-diff -up sympy-0.6.7/sympy/core/tests/test_sets.py.mpmath sympy-0.6.7/sympy/core/tests/test_sets.py
---- sympy-0.6.7/sympy/core/tests/test_sets.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/sympy/core/tests/test_sets.py	2010-04-27 08:55:04.312301024 +0300
-@@ -1,5 +1,5 @@
- from sympy import Symbol, Set, Union, Interval, oo, S, Inequality, max_, min_, raises
--from sympy.mpmath import mpi
-+from mpmath import mpi
- 
- def test_interval_arguments():
-     assert Interval(0, oo) == Interval(0, oo, False, True)
-diff -up sympy-0.6.7/sympy/functions/combinatorial/numbers.py.mpmath sympy-0.6.7/sympy/functions/combinatorial/numbers.py
---- sympy-0.6.7/sympy/functions/combinatorial/numbers.py.mpmath	2010-03-17 22:37:28.000000000 +0200
-+++ sympy-0.6.7/sympy/functions/combinatorial/numbers.py	2010-04-27 08:58:34.753300999 +0300
-@@ -9,7 +9,7 @@ the separate 'factorials' module.
- 
- from sympy import Function, S, Symbol, Rational, oo, Integer, C
- 
--from sympy.mpmath import bernfrac
-+from mpmath import bernfrac
- 
- from sympy.utilities.decorator import deprecated
- 
-diff -up sympy-0.6.7/sympy/functions/special/error_functions.py.mpmath sympy-0.6.7/sympy/functions/special/error_functions.py
---- sympy-0.6.7/sympy/functions/special/error_functions.py.mpmath	2010-03-17 22:37:28.000000000 +0200
-+++ sympy-0.6.7/sympy/functions/special/error_functions.py	2010-04-27 08:58:16.129301012 +0300
-@@ -70,6 +70,6 @@ class erf(Function):
-         if arg.is_Number:
-             # XXX: Temporary hack. FIX THIS
-             from sympy.core.numbers import Real
--            from sympy.mpmath import erf
-+            from mpmath import erf
-             e = erf(float(arg))
-             return Real(str(e))
-diff -up sympy-0.6.7/sympy/matrices/matrices.py.mpmath sympy-0.6.7/sympy/matrices/matrices.py
---- sympy-0.6.7/sympy/matrices/matrices.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/sympy/matrices/matrices.py	2010-04-27 08:54:06.171176365 +0300
-@@ -804,7 +804,7 @@ class Matrix(object):
-         self is the coefficient matrix A and rhs is the right side b.
- 
-         This is for symbolic matrices, for real or complex ones use
--        sympy.mpmath.lu_solve or sympy.mpmath.qr_solve.
-+        mpmath.lu_solve or mpmath.qr_solve.
-         """
-         assert rhs.rows == self.rows
-         A, perm = self.LUdecomposition_Simple(iszerofunc=_iszero)
-@@ -1023,7 +1023,7 @@ class Matrix(object):
-         to use QRsolve.
- 
-         This is mainly for educational purposes and symbolic matrices, for real
--        (or complex) matrices use sympy.mpmath.qr_solve.
-+        (or complex) matrices use mpmath.qr_solve.
-         """
- 
-         Q, R = self.QRdecomposition()
-diff -up sympy-0.6.7/sympy/ntheory/partitions_.py.mpmath sympy-0.6.7/sympy/ntheory/partitions_.py
---- sympy-0.6.7/sympy/ntheory/partitions_.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/sympy/ntheory/partitions_.py	2010-04-27 08:50:51.171363156 +0300
-@@ -1,4 +1,4 @@
--from sympy.mpmath.libmp import (fzero,
-+from mpmath.libmp import (fzero,
-     from_man_exp, from_int, from_rational,
-     fone, ftwo, fhalf, bitcount, to_int, to_str, mpf_mul, mpf_div, mpf_sub,
-     mpf_add,
-diff -up sympy-0.6.7/sympy/polys/integerpolys.py.mpmath sympy-0.6.7/sympy/polys/integerpolys.py
---- sympy-0.6.7/sympy/polys/integerpolys.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/sympy/polys/integerpolys.py	2010-04-27 08:50:51.173363035 +0300
-@@ -15,7 +15,7 @@ from math import floor, ceil, log, sqrt
- from random import randint
- 
- from sympy.core.numbers import igcd, igcdex
--from sympy.mpmath.libmp import isqrt
-+from mpmath.libmp import isqrt
- 
- INT_TYPE = int
- INT_ZERO = 0
-diff -up sympy-0.6.7/sympy/printing/latex.py.mpmath sympy-0.6.7/sympy/printing/latex.py
---- sympy-0.6.7/sympy/printing/latex.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/sympy/printing/latex.py	2010-04-27 08:50:51.174363059 +0300
-@@ -8,8 +8,8 @@ from conventions import split_super_sub
- from sympy.simplify import fraction
- from sympy import Interval
- 
--import sympy.mpmath.libmp as mlib
--from sympy.mpmath.libmp import prec_to_dps
-+import mpmath.libmp as mlib
-+from mpmath.libmp import prec_to_dps
- 
- import re
- 
-diff -up sympy-0.6.7/sympy/printing/repr.py.mpmath sympy-0.6.7/sympy/printing/repr.py
---- sympy-0.6.7/sympy/printing/repr.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/sympy/printing/repr.py	2010-04-27 08:50:51.174363059 +0300
-@@ -8,8 +8,8 @@ relation eval(srepr(expr))=expr holds in
- from printer import Printer
- from sympy.printing.precedence import precedence
- from sympy.core import Basic
--import sympy.mpmath.libmp as mlib
--from sympy.mpmath.libmp import prec_to_dps, repr_dps
-+import mpmath.libmp as mlib
-+from mpmath.libmp import prec_to_dps, repr_dps
- 
- class ReprPrinter(Printer):
-     printmethod = "_sympyrepr_"
-diff -up sympy-0.6.7/sympy/printing/str.py.mpmath sympy-0.6.7/sympy/printing/str.py
---- sympy-0.6.7/sympy/printing/str.py.mpmath	2010-03-17 22:37:37.000000000 +0200
-+++ sympy-0.6.7/sympy/printing/str.py	2010-04-27 08:50:51.175363132 +0300
-@@ -10,8 +10,8 @@ from sympy.core.power import Pow
- from sympy.core.symbol import Symbol, Wild
- from sympy.core.basic import Basic
- 
--import sympy.mpmath.libmp as mlib
--from sympy.mpmath.libmp import prec_to_dps
-+import mpmath.libmp as mlib
-+from mpmath.libmp import prec_to_dps
- 
- class StrPrinter(Printer):
-     printmethod = "_sympystr_"
-diff -up sympy-0.6.7/sympy/simplify/simplify.py.mpmath sympy-0.6.7/sympy/simplify/simplify.py
---- sympy-0.6.7/sympy/simplify/simplify.py.mpmath	2010-03-17 22:37:28.000000000 +0200
-+++ sympy-0.6.7/sympy/simplify/simplify.py	2010-04-27 08:53:12.251300999 +0300
-@@ -14,7 +14,7 @@ from sympy.simplify.cse_main import cse
- 
- from sympy.polys import Poly, factor, PolynomialError
- 
--import sympy.mpmath as mpmath
-+import mpmath
- 
- def fraction(expr, exact=False):
-     """Returns a pair with expression's numerator and denominator.
-diff -up sympy-0.6.7/sympy/solvers/solvers.py.mpmath sympy-0.6.7/sympy/solvers/solvers.py
---- sympy-0.6.7/sympy/solvers/solvers.py.mpmath	2010-03-10 00:09:45.000000000 +0200
-+++ sympy-0.6.7/sympy/solvers/solvers.py	2010-04-27 08:57:48.546300975 +0300
-@@ -30,7 +30,7 @@ from sympy.functions.elementary.piecewis
- from sympy.utilities import any, all
- from sympy.utilities.iterables import iff
- from sympy.utilities.lambdify import lambdify
--from sympy.mpmath import findroot
-+from mpmath import findroot
- 
- from sympy.solvers.polysys import solve_poly_system
- 
-@@ -746,7 +746,8 @@ def nsolve(*args, **kwargs):
- 
-     >>> from sympy import Symbol, nsolve
-     >>> import sympy
--    >>> sympy.mpmath.mp.dps = 15
-+    >>> import mpmath 
-+    >>> mpmath.mp.dps = 15
-     >>> x1 = Symbol('x1')
-     >>> x2 = Symbol('x2')
-     >>> f1 = 3 * x1**2 - 2 * x2**2 - 1
-diff -up sympy-0.6.7/sympy/solvers/tests/test_numeric.py.mpmath sympy-0.6.7/sympy/solvers/tests/test_numeric.py
---- sympy-0.6.7/sympy/solvers/tests/test_numeric.py.mpmath	2010-01-28 23:54:00.000000000 +0200
-+++ sympy-0.6.7/sympy/solvers/tests/test_numeric.py	2010-04-27 08:57:01.284300981 +0300
-@@ -1,4 +1,4 @@
--from sympy.mpmath import mnorm, mpf
-+from mpmath import mnorm, mpf
- from sympy.solvers import nsolve
- from sympy.utilities.lambdify import lambdify
- from sympy import Symbol, Matrix, sqrt, Eq
-diff -up sympy-0.6.7/sympy/statistics/distributions.py.mpmath sympy-0.6.7/sympy/statistics/distributions.py
---- sympy-0.6.7/sympy/statistics/distributions.py.mpmath	2010-02-16 01:30:47.000000000 +0200
-+++ sympy-0.6.7/sympy/statistics/distributions.py	2010-04-27 08:54:35.546300698 +0300
-@@ -129,7 +129,7 @@ class Normal(ContinuousProbability):
-         # error function is not yet implemented in SymPy but can easily be
-         # computed numerically
- 
--        from sympy.mpmath import mpf, erfinv
-+        from mpmath import mpf, erfinv
- 
-         # calculate y = ierf(p) by solving erf(y) - p = 0
-         y = erfinv(mpf(p))
-diff -up sympy-0.6.7/sympy/statistics/tests/test_statistics.py.mpmath sympy-0.6.7/sympy/statistics/tests/test_statistics.py
---- sympy-0.6.7/sympy/statistics/tests/test_statistics.py.mpmath	2010-01-28 23:54:00.000000000 +0200
-+++ sympy-0.6.7/sympy/statistics/tests/test_statistics.py	2010-04-27 08:54:23.178301026 +0300
-@@ -4,7 +4,7 @@ from sympy.statistics import Normal, Uni
- from sympy.statistics.distributions import PDF
- import operator # XXX weird abs/sympy.abs conflict
- 
--from sympy.mpmath import mp
-+from mpmath import mp
- 
- def test_normal():
-     dps, mp.dps = mp.dps, 20
-diff -up sympy-0.6.7/sympy/test_external/test_numpy.py.mpmath sympy-0.6.7/sympy/test_external/test_numpy.py
---- sympy-0.6.7/sympy/test_external/test_numpy.py.mpmath	2010-03-17 22:37:28.000000000 +0200
-+++ sympy-0.6.7/sympy/test_external/test_numpy.py	2010-04-27 08:50:51.176363100 +0300
-@@ -17,7 +17,7 @@ from sympy import (Rational, Symbol, lis
-         symarray, symbols)
- import sympy
- 
--from sympy import mpmath
-+import mpmath
- mpmath.mp.dps = 16
- sin02 = mpmath.mpf("0.198669330795061215459412627")
- 
-diff -up sympy-0.6.7/sympy/utilities/lambdify.py.mpmath sympy-0.6.7/sympy/utilities/lambdify.py
---- sympy-0.6.7/sympy/utilities/lambdify.py.mpmath	2010-03-17 22:37:28.000000000 +0200
-+++ sympy-0.6.7/sympy/utilities/lambdify.py	2010-04-27 08:56:39.365300857 +0300
-@@ -58,7 +58,7 @@ NUMPY_TRANSLATIONS = {
- # Available modules:
- MODULES = {
-     "math":(MATH, MATH_TRANSLATIONS, ("from math import *",)),
--    "mpmath":(MPMATH, MPMATH_TRANSLATIONS, ("from sympy.mpmath import *",)),
-+    "mpmath":(MPMATH, MPMATH_TRANSLATIONS, ("from mpmath import *",)),
-     "numpy":(NUMPY, NUMPY_TRANSLATIONS, ("from numpy import *",)),
-     "sympy":(SYMPY, {}, ("from sympy.functions import *",
-                          "from sympy.matrices import Matrix",
-diff -up sympy-0.6.7/sympy/utilities/runtests.py.mpmath sympy-0.6.7/sympy/utilities/runtests.py
-diff -up sympy-0.6.7/sympy/utilities/tests/test_lambdify.py.mpmath sympy-0.6.7/sympy/utilities/tests/test_lambdify.py
---- sympy-0.6.7/sympy/utilities/tests/test_lambdify.py.mpmath	2010-01-28 23:54:00.000000000 +0200
-+++ sympy-0.6.7/sympy/utilities/tests/test_lambdify.py	2010-04-27 09:32:59.977300954 +0300
-@@ -1,7 +1,7 @@
- from sympy.utilities.pytest import XFAIL
- from sympy import (symbols, lambdify, sqrt, sin, cos, pi, atan, Rational, Real,
-         Matrix, Lambda, exp, Integral, oo)
--from sympy import mpmath
-+import mpmath
- import math, sympy
- 
- # high precision output of sin(0.2*pi) is used to detect if precision is lost unwanted
diff --git a/sympy-0.7.1-strip-internal-mpmath.patch b/sympy-0.7.1-strip-internal-mpmath.patch
new file mode 100644
index 0000000..59c8961
--- /dev/null
+++ b/sympy-0.7.1-strip-internal-mpmath.patch
@@ -0,0 +1,529 @@
+diff -up sympy-0.7.1/examples/advanced/autowrap_ufuncify.py.mpmath sympy-0.7.1/examples/advanced/autowrap_ufuncify.py
+--- sympy-0.7.1/examples/advanced/autowrap_ufuncify.py.mpmath	2011-07-26 02:59:41.000000000 +0300
++++ sympy-0.7.1/examples/advanced/autowrap_ufuncify.py	2011-10-12 01:53:48.550102357 +0300
+@@ -22,7 +22,7 @@ np = import_module('numpy')
+ if not np:
+     sys.exit("Cannot import numpy. Exiting.")
+ 
+-import sympy.mpmath as mpmath
++import mpmath as mpmath
+ from sympy.utilities.autowrap import ufuncify
+ from sympy.utilities.lambdify import implemented_function
+ from sympy import symbols, legendre, Plot, pprint
+diff -up sympy-0.7.1/examples/advanced/pidigits.py.mpmath sympy-0.7.1/examples/advanced/pidigits.py
+--- sympy-0.7.1/examples/advanced/pidigits.py.mpmath	2011-07-26 02:59:41.000000000 +0300
++++ sympy-0.7.1/examples/advanced/pidigits.py	2011-10-12 01:53:48.551102384 +0300
+@@ -6,8 +6,8 @@ Example shows arbitrary precision using 
+ computation of the digits of pi.
+ """
+ 
+-from sympy.mpmath import libmp, pi
+-from sympy.mpmath import functions as mpf_funs
++from mpmath import libmp, pi
++from mpmath import functions as mpf_funs
+ 
+ import math
+ from time import clock
+diff -up sympy-0.7.1/setup.py.mpmath sympy-0.7.1/setup.py
+--- sympy-0.7.1/setup.py.mpmath	2011-07-30 03:04:23.000000000 +0300
++++ sympy-0.7.1/setup.py	2011-10-12 01:54:20.703994407 +0300
+@@ -59,12 +59,6 @@ modules = [
+     'sympy.logic.algorithms',
+     'sympy.logic.utilities',
+     'sympy.matrices',
+-    'sympy.mpmath',
+-    'sympy.mpmath.calculus',
+-    'sympy.mpmath.functions',
+-    'sympy.mpmath.libmp',
+-    'sympy.mpmath.matrices',
+-    'sympy.mpmath.tests',
+     'sympy.ntheory',
+     'sympy.parsing',
+     'sympy.physics',
+@@ -208,7 +202,6 @@ tests = [
+     'sympy.integrals.tests',
+     'sympy.logic.tests',
+     'sympy.matrices.tests',
+-    'sympy.mpmath.tests',
+     'sympy.ntheory.tests',
+     'sympy.parsing.tests',
+     'sympy.physics.quantum.tests',
+diff -up sympy-0.7.1/sympy/core/evalf.py.mpmath sympy-0.7.1/sympy/core/evalf.py
+--- sympy-0.7.1/sympy/core/evalf.py.mpmath	2011-07-30 03:04:23.000000000 +0300
++++ sympy-0.7.1/sympy/core/evalf.py	2011-10-12 01:53:48.552102412 +0300
+@@ -3,18 +3,18 @@ Adaptive numerical evaluation of SymPy e
+ for mathematical functions.
+ """
+ 
+-import sympy.mpmath.libmp as libmp
+-from sympy.mpmath import make_mpc, make_mpf, mp, mpc, mpf, nsum, quadts, quadosc
+-from sympy.mpmath import inf as mpmath_inf
+-from sympy.mpmath.libmp import (bitcount, from_int, from_man_exp, \
++import mpmath.libmp as libmp
++from mpmath import make_mpc, make_mpf, mp, mpc, mpf, nsum, quadts, quadosc
++from mpmath import inf as mpmath_inf
++from mpmath.libmp import (bitcount, from_int, from_man_exp, \
+         from_rational, fhalf, fnone, fone, fzero, mpf_abs, mpf_add, mpf_atan, \
+         mpf_atan2, mpf_cmp, mpf_cos, mpf_e, mpf_exp, mpf_log, mpf_lt, mpf_mul, \
+         mpf_neg, mpf_pi, mpf_pow, mpf_pow_int, mpf_shift, mpf_sin, mpf_sqrt, \
+         normalize, round_nearest, to_int, to_str)
+-from sympy.mpmath.libmp.backend import MPZ
+-from sympy.mpmath.libmp.libmpf import dps_to_prec
++from mpmath.libmp.backend import MPZ
++from mpmath.libmp.libmpf import dps_to_prec
+ 
+-from sympy.mpmath.libmp.gammazeta import mpf_bernoulli
++from mpmath.libmp.gammazeta import mpf_bernoulli
+ 
+ import math
+ 
+diff -up sympy-0.7.1/sympy/core/function.py.mpmath sympy-0.7.1/sympy/core/function.py
+--- sympy-0.7.1/sympy/core/function.py.mpmath	2011-07-30 03:04:24.000000000 +0300
++++ sympy-0.7.1/sympy/core/function.py	2011-10-12 01:53:48.553102440 +0300
+@@ -43,8 +43,8 @@ from sympy.core.decorators import deprec
+ from sympy.utilities import default_sort_key
+ from sympy.utilities.iterables import uniq
+ 
+-from sympy import mpmath
+-import sympy.mpmath.libmp as mlib
++import mpmath
++import mpmath.libmp as mlib
+ 
+ class PoleError(Exception):
+     pass
+@@ -737,7 +737,7 @@ class Derivative(Expr):
+         When we can represent derivatives at a point, this should be folded
+         into the normal evalf. For now, we need a special method.
+         """
+-        from sympy import mpmath
++        import mpmath
+         from sympy.core.expr import Expr
+         if len(self.free_symbols) != 1 or len(self.variables) != 1:
+             raise NotImplementedError('partials and higher order derivatives')
+diff -up sympy-0.7.1/sympy/core/numbers.py.mpmath sympy-0.7.1/sympy/core/numbers.py
+--- sympy-0.7.1/sympy/core/numbers.py.mpmath	2011-07-30 03:04:24.000000000 +0300
++++ sympy-0.7.1/sympy/core/numbers.py	2011-10-12 01:53:48.553102440 +0300
+@@ -5,10 +5,10 @@ from singleton import S, Singleton
+ from expr import Expr, AtomicExpr
+ from decorators import _sympifyit, deprecated
+ from cache import cacheit, clear_cache
+-import sympy.mpmath as mpmath
+-import sympy.mpmath.libmp as mlib
+-from sympy.mpmath.libmp import mpf_pow, mpf_pi, mpf_e, phi_fixed
+-from sympy.mpmath.ctx_mp import mpnumeric
++import mpmath as mpmath
++import mpmath.libmp as mlib
++from mpmath.libmp import mpf_pow, mpf_pi, mpf_e, phi_fixed
++from mpmath.ctx_mp import mpnumeric
+ 
+ import decimal
+ 
+diff -up sympy-0.7.1/sympy/core/power.py.mpmath sympy-0.7.1/sympy/core/power.py
+--- sympy-0.7.1/sympy/core/power.py.mpmath	2011-07-28 00:06:51.000000000 +0300
++++ sympy-0.7.1/sympy/core/power.py	2011-10-12 01:53:48.554102468 +0300
+@@ -6,7 +6,7 @@ from core import C
+ from singleton import S
+ from expr import Expr
+ 
+-from sympy import mpmath
++import mpmath
+ from sympy.utilities.iterables import sift
+ 
+ def integer_nthroot(y, n):
+diff -up sympy-0.7.1/sympy/core/sets.py.mpmath sympy-0.7.1/sympy/core/sets.py
+--- sympy-0.7.1/sympy/core/sets.py.mpmath	2011-07-28 00:06:51.000000000 +0300
++++ sympy-0.7.1/sympy/core/sets.py	2011-10-12 01:53:48.555102496 +0300
+@@ -3,7 +3,7 @@ from singleton import Singleton, S
+ from evalf import EvalfMixin
+ from numbers import Float, Integer
+ from sympify import _sympify, sympify, SympifyError
+-from sympy.mpmath import mpi, mpf
++from mpmath import mpi, mpf
+ from containers import Tuple
+ 
+ 
+diff -up sympy-0.7.1/sympy/core/tests/test_evalf.py.mpmath sympy-0.7.1/sympy/core/tests/test_evalf.py
+--- sympy-0.7.1/sympy/core/tests/test_evalf.py.mpmath	2011-07-28 00:06:51.000000000 +0300
++++ sympy-0.7.1/sympy/core/tests/test_evalf.py	2011-10-12 01:53:48.555102496 +0300
+@@ -5,7 +5,7 @@ from sympy import pi, I, Symbol, Add, Ra
+     factorial, binomial, Sum, zeta, Catalan, Pow, GoldenRatio, sympify, \
+     sstr, Function, Eq, Mul, Pow, Derivative
+ 
+-from sympy.mpmath.libmp.libmpf import from_float
++from mpmath.libmp.libmpf import from_float
+ 
+ from sympy.utilities.pytest import raises
+ 
+diff -up sympy-0.7.1/sympy/core/tests/test_numbers.py.mpmath sympy-0.7.1/sympy/core/tests/test_numbers.py
+--- sympy-0.7.1/sympy/core/tests/test_numbers.py.mpmath	2011-07-30 02:00:19.000000000 +0300
++++ sympy-0.7.1/sympy/core/tests/test_numbers.py	2011-10-12 01:53:48.556102524 +0300
+@@ -5,7 +5,7 @@ from sympy.core.power import integer_nth
+ 
+ from sympy.core.numbers import igcd, ilcm, igcdex, seterr, _intcache
+ from sympy.utilities.pytest import raises
+-from sympy import mpmath
++import mpmath
+ 
+ def test_integers_cache():
+     python_int = 2**65 + 3175259
+diff -up sympy-0.7.1/sympy/core/tests/test_sets.py.mpmath sympy-0.7.1/sympy/core/tests/test_sets.py
+--- sympy-0.7.1/sympy/core/tests/test_sets.py.mpmath	2011-07-28 00:06:51.000000000 +0300
++++ sympy-0.7.1/sympy/core/tests/test_sets.py	2011-10-12 01:53:48.556102524 +0300
+@@ -2,7 +2,7 @@ from sympy import (
+     Symbol, Set, Union, Interval, oo, S, sympify, nan,
+     Inequality, Max, Min, And, Or, Eq, Ge, Le, Gt, Lt, Float, FiniteSet
+ )
+-from sympy.mpmath import mpi
++from mpmath import mpi
+ 
+ from sympy.utilities.pytest import raises
+ 
+diff -up sympy-0.7.1/sympy/core/tests/test_sympify.py.mpmath sympy-0.7.1/sympy/core/tests/test_sympify.py
+--- sympy-0.7.1/sympy/core/tests/test_sympify.py.mpmath	2011-07-28 00:06:51.000000000 +0300
++++ sympy-0.7.1/sympy/core/tests/test_sympify.py	2011-10-12 01:53:48.557102552 +0300
+@@ -6,7 +6,7 @@ from sympy.core.decorators import _sympi
+ from sympy.utilities.pytest import XFAIL, raises
+ from sympy.geometry import Point, Line
+ 
+-from sympy import mpmath
++import mpmath
+ 
+ def test_439():
+     v = sympify("exp(x)")
+diff -up sympy-0.7.1/sympy/external/tests/test_numpy.py.mpmath sympy-0.7.1/sympy/external/tests/test_numpy.py
+--- sympy-0.7.1/sympy/external/tests/test_numpy.py.mpmath	2011-07-28 00:06:51.000000000 +0300
++++ sympy-0.7.1/sympy/external/tests/test_numpy.py	2011-10-12 01:53:48.558102579 +0300
+@@ -21,7 +21,7 @@ from sympy import (Rational, Symbol, lis
+         symarray, symbols, Integer)
+ import sympy
+ 
+-from sympy import mpmath
++import mpmath
+ 
+ # first, systematically check, that all operations are implemented and don't
+ # raise and exception
+diff -up sympy-0.7.1/sympy/functions/combinatorial/numbers.py.mpmath sympy-0.7.1/sympy/functions/combinatorial/numbers.py
+--- sympy-0.7.1/sympy/functions/combinatorial/numbers.py.mpmath	2011-06-29 11:58:10.000000000 +0300
++++ sympy-0.7.1/sympy/functions/combinatorial/numbers.py	2011-10-12 01:53:48.558102579 +0300
+@@ -9,7 +9,7 @@ the separate 'factorials' module.
+ 
+ from sympy import Function, S, Symbol, Rational, oo, Integer, C, Add
+ 
+-from sympy.mpmath import bernfrac
++from mpmath import bernfrac
+ 
+ def _product(a, b):
+     p = 1
+diff -up sympy-0.7.1/sympy/functions/special/bessel.py.mpmath sympy-0.7.1/sympy/functions/special/bessel.py
+--- sympy-0.7.1/sympy/functions/special/bessel.py.mpmath	2011-07-30 03:04:25.000000000 +0300
++++ sympy-0.7.1/sympy/functions/special/bessel.py	2011-10-12 01:53:48.558102579 +0300
+@@ -400,7 +400,7 @@ def jn_zeros(n, k, method="sympy"):
+ 
+     **Examples**
+ 
+-        >>> from sympy.mpmath import nprint
++        >>> from mpmath import nprint
+         >>> from sympy import jn_zeros
+         >>> nprint(jn_zeros(2, 4))
+         [5.76345919689, 9.09501133048, 12.3229409706, 15.5146030109]
+@@ -409,7 +409,7 @@ def jn_zeros(n, k, method="sympy"):
+     from math import pi
+ 
+     if method == "sympy":
+-        from sympy.mpmath import findroot
++        from mpmath import findroot
+         f = lambda x: jn(n, x).n()
+     elif method == "scipy":
+         from scipy.special import sph_jn
+diff -up sympy-0.7.1/sympy/functions/special/gamma_functions.py.mpmath sympy-0.7.1/sympy/functions/special/gamma_functions.py
+--- sympy-0.7.1/sympy/functions/special/gamma_functions.py.mpmath	2011-07-28 00:06:51.000000000 +0300
++++ sympy-0.7.1/sympy/functions/special/gamma_functions.py	2011-10-12 01:53:48.559102606 +0300
+@@ -167,7 +167,7 @@ class lowergamma(Function):
+                     return (cls(a + 1, x) + x**a * C.exp(-x))/a
+ 
+     def _eval_evalf(self, prec):
+-        from sympy.mpmath import mp
++        from mpmath import mp
+         from sympy import Expr
+         a = self.args[0]._to_mpmath(prec)
+         z = self.args[1]._to_mpmath(prec)
+@@ -230,7 +230,7 @@ class uppergamma(Function):
+             raise ArgumentIndexError(self, argindex)
+ 
+     def _eval_evalf(self, prec):
+-        from sympy.mpmath import mp
++        from mpmath import mp
+         from sympy import Expr
+         a = self.args[0]._to_mpmath(prec)
+         z = self.args[1]._to_mpmath(prec)
+diff -up sympy-0.7.1/sympy/matrices/matrices.py.mpmath sympy-0.7.1/sympy/matrices/matrices.py
+--- sympy-0.7.1/sympy/matrices/matrices.py.mpmath	2011-07-30 03:04:26.000000000 +0300
++++ sympy-0.7.1/sympy/matrices/matrices.py	2011-10-12 01:53:48.560102634 +0300
+@@ -1093,7 +1093,7 @@ class Matrix(object):
+         self is the coefficient matrix A and rhs is the right side b.
+ 
+         This is for symbolic matrices, for real or complex ones use
+-        sympy.mpmath.lu_solve or sympy.mpmath.qr_solve.
++        mpmath.lu_solve or mpmath.qr_solve.
+ 
+         """
+         if rhs.rows != self.rows:
+@@ -1367,7 +1367,7 @@ class Matrix(object):
+         to use QRsolve.
+ 
+         This is mainly for educational purposes and symbolic matrices, for real
+-        (or complex) matrices use sympy.mpmath.qr_solve.
++        (or complex) matrices use mpmath.qr_solve.
+         """
+ 
+         Q, R = self.QRdecomposition()
+diff -up sympy-0.7.1/sympy/ntheory/partitions_.py.mpmath sympy-0.7.1/sympy/ntheory/partitions_.py
+--- sympy-0.7.1/sympy/ntheory/partitions_.py.mpmath	2011-06-28 09:41:12.000000000 +0300
++++ sympy-0.7.1/sympy/ntheory/partitions_.py	2011-10-12 01:53:48.569102884 +0300
+@@ -1,4 +1,4 @@
+-from sympy.mpmath.libmp import (fzero,
++from mpmath.libmp import (fzero,
+     from_man_exp, from_int, from_rational,
+     fone, fhalf, bitcount, to_int, to_str, mpf_mul, mpf_div, mpf_sub,
+     mpf_add, mpf_sqrt, mpf_pi, mpf_cosh_sinh, pi_fixed, mpf_cos)
+diff -up sympy-0.7.1/sympy/physics/quantum/constants.py.mpmath sympy-0.7.1/sympy/physics/quantum/constants.py
+--- sympy-0.7.1/sympy/physics/quantum/constants.py.mpmath	2011-06-29 11:58:11.000000000 +0300
++++ sympy-0.7.1/sympy/physics/quantum/constants.py	2011-10-12 01:53:48.569102884 +0300
+@@ -2,7 +2,7 @@
+ 
+ from sympy.core.numbers import NumberSymbol
+ from sympy.printing.pretty.stringpict import prettyForm
+-import sympy.mpmath.libmp as mlib
++import mpmath.libmp as mlib
+ 
+ #-----------------------------------------------------------------------------
+ # Constants
+diff -up sympy-0.7.1/sympy/polys/domains/groundtypes.py.mpmath sympy-0.7.1/sympy/polys/domains/groundtypes.py
+--- sympy-0.7.1/sympy/polys/domains/groundtypes.py.mpmath	2011-07-26 02:59:44.000000000 +0300
++++ sympy-0.7.1/sympy/polys/domains/groundtypes.py	2011-10-12 01:53:48.569102884 +0300
+@@ -66,13 +66,13 @@ else:
+     gmpy_lcm         = None
+     gmpy_sqrt        = None
+ 
+-from sympy.mpmath import (
++from mpmath import (
+     mpf as MPmathRealType,
+     mpc as MPmathComplexType,
+     mpi as MPmathIntervalType,
+ )
+ 
+-from sympy.mpmath.libmp.libmpf import isqrt
++from mpmath.libmp.libmpf import isqrt
+ 
+ def python_sqrt(a):
+     return int(isqrt(a))
+diff -up sympy-0.7.1/sympy/polys/numberfields.py.mpmath sympy-0.7.1/sympy/polys/numberfields.py
+--- sympy-0.7.1/sympy/polys/numberfields.py.mpmath	2011-07-28 00:06:54.000000000 +0300
++++ sympy-0.7.1/sympy/polys/numberfields.py	2011-10-12 01:53:48.569102884 +0300
+@@ -28,7 +28,7 @@ from sympy.utilities import (
+ )
+ 
+ from sympy.ntheory import sieve
+-from sympy.mpmath import pslq, mp
++from mpmath import pslq, mp
+ 
+ def minimal_polynomial(ex, x=None, **args):
+     """
+diff -up sympy-0.7.1/sympy/polys/polytools.py.mpmath sympy-0.7.1/sympy/polys/polytools.py
+--- sympy-0.7.1/sympy/polys/polytools.py.mpmath	2011-07-30 03:04:27.000000000 +0300
++++ sympy-0.7.1/sympy/polys/polytools.py	2011-10-12 01:53:48.570102912 +0300
+@@ -63,7 +63,7 @@ from sympy.utilities import (
+ from sympy.ntheory import isprime
+ 
+ import sympy.polys
+-import sympy.mpmath
++import mpmath
+ 
+ from sympy.polys.domains import FF, QQ
+ from sympy.polys.constructor import construct_domain
+@@ -2912,16 +2912,16 @@ class Poly(Expr):
+ 
+         coeffs = [ coeff.evalf(n=n).as_real_imag() for coeff in f.all_coeffs() ]
+ 
+-        dps = sympy.mpmath.mp.dps
+-        sympy.mpmath.mp.dps = n
++        dps = mpmath.mp.dps
++        mpmath.mp.dps = n
+ 
+         try:
+             try:
+-                coeffs = [ sympy.mpmath.mpc(*coeff) for coeff in coeffs ]
++                coeffs = [ mpmath.mpc(*coeff) for coeff in coeffs ]
+             except TypeError:
+                 raise DomainError("numerical domain expected, got %s" % f.rep.dom)
+ 
+-            result = sympy.mpmath.polyroots(coeffs, maxsteps=maxsteps, cleanup=cleanup, error=error)
++            result = mpmath.polyroots(coeffs, maxsteps=maxsteps, cleanup=cleanup, error=error)
+ 
+             if error:
+                 roots, error = result
+@@ -2930,7 +2930,7 @@ class Poly(Expr):
+ 
+             roots = map(sympify, sorted(roots, key=lambda r: (r.real, r.imag)))
+         finally:
+-            sympy.mpmath.mp.dps = dps
++            mpmath.mp.dps = dps
+ 
+         if error is not None:
+             return roots, sympify(error)
+diff -up sympy-0.7.1/sympy/polys/rootoftools.py.mpmath sympy-0.7.1/sympy/polys/rootoftools.py
+--- sympy-0.7.1/sympy/polys/rootoftools.py.mpmath	2011-07-07 06:08:19.000000000 +0300
++++ sympy-0.7.1/sympy/polys/rootoftools.py	2011-10-12 01:53:48.571102940 +0300
+@@ -21,7 +21,7 @@ from sympy.polys.polyerrors import (
+ 
+ from sympy.polys.domains import QQ
+ 
+-from sympy.mpmath import (
++from mpmath import (
+     mp, mpf, mpc, findroot)
+ 
+ from sympy.utilities import lambdify
+diff -up sympy-0.7.1/sympy/printing/latex.py.mpmath sympy-0.7.1/sympy/printing/latex.py
+--- sympy-0.7.1/sympy/printing/latex.py.mpmath	2011-07-30 03:04:28.000000000 +0300
++++ sympy-0.7.1/sympy/printing/latex.py	2011-10-12 01:53:48.571102940 +0300
+@@ -8,8 +8,8 @@ from conventions import split_super_sub
+ from sympy.simplify import fraction
+ from sympy import Interval
+ 
+-import sympy.mpmath.libmp as mlib
+-from sympy.mpmath.libmp import prec_to_dps
++import mpmath.libmp as mlib
++from mpmath.libmp import prec_to_dps
+ 
+ from sympy.core.compatibility import cmp_to_key
+ 
+diff -up sympy-0.7.1/sympy/printing/repr.py.mpmath sympy-0.7.1/sympy/printing/repr.py
+--- sympy-0.7.1/sympy/printing/repr.py.mpmath	2011-07-24 06:17:32.000000000 +0300
++++ sympy-0.7.1/sympy/printing/repr.py	2011-10-12 01:53:48.571102940 +0300
+@@ -7,8 +7,8 @@ relation eval(srepr(expr))=expr holds in
+ 
+ from printer import Printer
+ from sympy.core import Basic
+-import sympy.mpmath.libmp as mlib
+-from sympy.mpmath.libmp import prec_to_dps, repr_dps
++import mpmath.libmp as mlib
++from mpmath.libmp import prec_to_dps, repr_dps
+ 
+ class ReprPrinter(Printer):
+     printmethod = "_sympyrepr"
+diff -up sympy-0.7.1/sympy/printing/str.py.mpmath sympy-0.7.1/sympy/printing/str.py
+--- sympy-0.7.1/sympy/printing/str.py.mpmath	2011-07-28 00:06:54.000000000 +0300
++++ sympy-0.7.1/sympy/printing/str.py	2011-10-12 01:53:48.572102968 +0300
+@@ -6,8 +6,8 @@ from sympy.core import S, Rational, Pow,
+ from printer import Printer
+ from sympy.printing.precedence import precedence, PRECEDENCE
+ 
+-import sympy.mpmath.libmp as mlib
+-from sympy.mpmath.libmp import prec_to_dps
++import mpmath.libmp as mlib
++from mpmath.libmp import prec_to_dps
+ 
+ from sympy.polys.polyerrors import PolynomialError
+ 
+diff -up sympy-0.7.1/sympy/simplify/simplify.py.mpmath sympy-0.7.1/sympy/simplify/simplify.py
+--- sympy-0.7.1/sympy/simplify/simplify.py.mpmath	2011-07-30 03:04:29.000000000 +0300
++++ sympy-0.7.1/sympy/simplify/simplify.py	2011-10-12 01:53:48.572102968 +0300
+@@ -18,7 +18,7 @@ from sympy.polys import (Poly, together,
+ 
+ from sympy.core.compatibility import reduce
+ 
+-import sympy.mpmath as mpmath
++import mpmath as mpmath
+ 
+ def fraction(expr, exact=False):
+     """Returns a pair with expression's numerator and denominator.
+diff -up sympy-0.7.1/sympy/solvers/solvers.py.mpmath sympy-0.7.1/sympy/solvers/solvers.py
+--- sympy-0.7.1/sympy/solvers/solvers.py.mpmath	2011-07-30 03:04:29.000000000 +0300
++++ sympy-0.7.1/sympy/solvers/solvers.py	2011-10-12 01:53:48.572102968 +0300
+@@ -25,7 +25,7 @@ from sympy.polys import roots, cancel, P
+ from sympy.functions.elementary.piecewise import piecewise_fold
+ 
+ from sympy.utilities.lambdify import lambdify
+-from sympy.mpmath import findroot
++from mpmath import findroot
+ 
+ from sympy.solvers.polysys import solve_poly_system
+ from sympy.solvers.inequalities import reduce_inequalities
+@@ -1182,7 +1182,7 @@ def nsolve(*args, **kwargs):
+ 
+     >>> from sympy import Symbol, nsolve
+     >>> import sympy
+-    >>> sympy.mpmath.mp.dps = 15
++    >>> mpmath.mp.dps = 15
+     >>> x1 = Symbol('x1')
+     >>> x2 = Symbol('x2')
+     >>> f1 = 3 * x1**2 - 2 * x2**2 - 1
+diff -up sympy-0.7.1/sympy/solvers/tests/test_numeric.py.mpmath sympy-0.7.1/sympy/solvers/tests/test_numeric.py
+--- sympy-0.7.1/sympy/solvers/tests/test_numeric.py.mpmath	2011-06-29 11:58:12.000000000 +0300
++++ sympy-0.7.1/sympy/solvers/tests/test_numeric.py	2011-10-12 01:53:48.573102996 +0300
+@@ -1,4 +1,4 @@
+-from sympy.mpmath import mnorm, mpf
++from mpmath import mnorm, mpf
+ from sympy.solvers import nsolve
+ from sympy.utilities.lambdify import lambdify
+ from sympy import Symbol, Matrix, sqrt, Eq
+diff -up sympy-0.7.1/sympy/statistics/distributions.py.mpmath sympy-0.7.1/sympy/statistics/distributions.py
+--- sympy-0.7.1/sympy/statistics/distributions.py.mpmath	2011-06-29 11:58:12.000000000 +0300
++++ sympy-0.7.1/sympy/statistics/distributions.py	2011-10-12 01:53:48.573102996 +0300
+@@ -135,7 +135,7 @@ class Normal(ContinuousProbability):
+         # error function is not yet implemented in SymPy but can easily be
+         # computed numerically
+ 
+-        from sympy.mpmath import mpf, erfinv
++        from mpmath import mpf, erfinv
+ 
+         # calculate y = ierf(p) by solving erf(y) - p = 0
+         y = erfinv(mpf(p))
+diff -up sympy-0.7.1/sympy/statistics/tests/test_statistics.py.mpmath sympy-0.7.1/sympy/statistics/tests/test_statistics.py
+--- sympy-0.7.1/sympy/statistics/tests/test_statistics.py.mpmath	2011-06-29 11:58:12.000000000 +0300
++++ sympy-0.7.1/sympy/statistics/tests/test_statistics.py	2011-10-12 01:53:48.573102996 +0300
+@@ -4,7 +4,7 @@ from sympy.statistics import Normal, Uni
+ from sympy.statistics.distributions import PDF
+ from operator import abs
+ 
+-from sympy.mpmath import mp
++from mpmath import mp
+ 
+ def test_normal():
+     dps, mp.dps = mp.dps, 20
+diff -up sympy-0.7.1/sympy/utilities/lambdify.py.mpmath sympy-0.7.1/sympy/utilities/lambdify.py
+--- sympy-0.7.1/sympy/utilities/lambdify.py.mpmath	2011-07-28 00:06:55.000000000 +0300
++++ sympy-0.7.1/sympy/utilities/lambdify.py	2011-10-12 01:53:48.573102996 +0300
+@@ -70,7 +70,7 @@ NUMPY_TRANSLATIONS = {
+ # Available modules:
+ MODULES = {
+     "math":(MATH, MATH_DEFAULT, MATH_TRANSLATIONS, ("from math import *",)),
+-    "mpmath":(MPMATH, MPMATH_DEFAULT, MPMATH_TRANSLATIONS, ("from sympy.mpmath import *",)),
++    "mpmath":(MPMATH, MPMATH_DEFAULT, MPMATH_TRANSLATIONS, ("from mpmath import *",)),
+     "numpy":(NUMPY, NUMPY_DEFAULT, NUMPY_TRANSLATIONS, ("from numpy import *",)),
+     "sympy":(SYMPY, SYMPY_DEFAULT, {}, ("from sympy.functions import *",
+                          "from sympy.matrices import Matrix",
+diff -up sympy-0.7.1/sympy/utilities/runtests.py.mpmath sympy-0.7.1/sympy/utilities/runtests.py
+--- sympy-0.7.1/sympy/utilities/runtests.py.mpmath	2011-07-30 03:04:30.000000000 +0300
++++ sympy-0.7.1/sympy/utilities/runtests.py	2011-10-12 01:53:48.573102996 +0300
+@@ -220,7 +220,7 @@ def doctest(*paths, **kwargs):
+     blacklist = kwargs.get("blacklist", [])
+     blacklist.extend([
+                     "doc/src/modules/mpmath", # needs to be fixed upstream
+-                    "sympy/mpmath", # needs to be fixed upstream
++                    "mpmath", # needs to be fixed upstream
+                     "doc/src/modules/plotting.txt", # generates live plots
+                     "sympy/plotting", # generates live plots
+                     "sympy/utilities/compilef.py", # needs tcc
+diff -up sympy-0.7.1/sympy/utilities/tests/test_lambdify.py.mpmath sympy-0.7.1/sympy/utilities/tests/test_lambdify.py
+--- sympy-0.7.1/sympy/utilities/tests/test_lambdify.py.mpmath	2011-07-28 00:06:55.000000000 +0300
++++ sympy-0.7.1/sympy/utilities/tests/test_lambdify.py	2011-10-12 01:53:48.574103024 +0300
+@@ -2,7 +2,7 @@ from sympy.utilities.pytest import XFAIL
+ from sympy import (symbols, lambdify, sqrt, sin, cos, pi, atan, Rational, Float,
+         Matrix, Lambda, exp, Integral, oo, I)
+ from sympy.printing.lambdarepr import LambdaPrinter
+-from sympy import mpmath
++import mpmath
+ from sympy.utilities.lambdify import implemented_function
+ import math, sympy
+ 
diff --git a/sympy-python27.patch b/sympy-python27.patch
deleted file mode 100644
index fbdbbda..0000000
--- a/sympy-python27.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-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 359eb4b..1459e9f 100644
--- a/sympy.spec
+++ b/sympy.spec
@@ -1,8 +1,8 @@
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:           sympy
-Version:        0.6.7
-Release:        6%{?dist}
+Version:        0.7.1
+Release:        1%{?dist}
 Summary:        A Python library for symbolic mathematics
 Group:          Development/Languages
 License:        BSD
@@ -10,14 +10,7 @@ URL:            http://code.google.com/p/sympy/
 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
-
-# Add mpf symbols
-Patch2:		sympy-0.6.7-mpf.patch
+Patch0:         sympy-0.7.1-strip-internal-mpmath.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -37,8 +30,8 @@ Python and does not require any external libraries.
 %patch0 -p1 -b .mpmath
 rm -rf sympy/mpmath doc/src/modules/mpmath
 
-%patch1 -p1
-%patch2 -p1
+#patch1 -p1
+#patch2 -p1
 
 %build
 python setup.py build
@@ -64,6 +57,9 @@ rm -rf %{buildroot}
 %{_mandir}/man1/isympy.1*
 
 %changelog
+* Tue Oct 11 2011 Jussi Lehtola <jussilehtola at fedoraproject.org> - 0.7.1-1
+- Update to 0.7.1.
+
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.6.7-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/sympy.git/commit/?h=epel7&id=aa125977a1060686dd71bc7ebf51e49115c6e1c1


More information about the scm-commits mailing list