[gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-python/sympy/files: sympy-0.6.7-python-2.7.patch

2010-10-01 Thread Peter Volkov
В Птн, 24/09/2010 в 20:09 +, Arfrever Frehtes Taifersar Arahesis
(arfrever) пишет:
   Added:sympy-0.6.7-python-2.7.patch
   Log:
   Fix majority of test failures with Python 2.7 (bug #330713).

This patch fixes not test failure, but sympy's ability to work with
python-2.7. Although python-2.7 is currently masked it will be unmasked
soon and some users may have it installed already. Looks like revision
bump to propagate this change in package on users is necessary in this
case. Please, bump revision.

 Revision  ChangesPath
 1.1  dev-python/sympy/files/sympy-0.6.7-python-2.7.patch
 
 file : 
 http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sympy/files/sympy-0.6.7-python-2.7.patch?rev=1.1view=markup
 plain: 
 http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sympy/files/sympy-0.6.7-python-2.7.patch?rev=1.1content-type=text/plain
 
 Index: sympy-0.6.7-python-2.7.patch
 ===
 http://github.com/sympy/sympy/commit/717516b8ffae806cdfdea8141ceb839107d92431
 
 --- sympy/printing/pretty/stringpict.py
 +++ sympy/printing/pretty/stringpict.py
 @@ -81,7 +81,7 @@
  return '\n'.join(result), newBaseline
  
  def right(self, *args):
 -Put pictures next to this one.
 +rPut pictures next to this one.
  Returns string, baseline arguments for stringPict.
  (Multiline) strings are allowed, and are given a baseline of 0.
   from sympy.printing.pretty.stringpict import stringPict
 --- sympy/utilities/runtests.py
 +++ sympy/utilities/runtests.py
 @@ -778,7 +778,7 @@
  def start(self):
  self.write_center(test process starts)
  executable = sys.executable
 -v = sys.version_info
 +v = tuple(sys.version_info)
  python_version = %s.%s.%s-%s-%s % v
  self.write(executable:   %s  (%s)\n\n % (executable, 
 python_version))
  self._t_start = clock()

-- 
Peter.




[gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-python/sympy/files: sympy-0.6.7-python-2.7.patch

2010-10-01 Thread Diego Elio Pettenò
Il giorno ven, 01/10/2010 alle 12.30 +0400, Peter Volkov ha scritto:
 
 This patch fixes not test failure, but sympy's ability to work with
 python-2.7. Although python-2.7 is currently masked it will be
 unmasked
 soon and some users may have it installed already. Looks like revision
 bump to propagate this change in package on users is necessary in this
 case. Please, bump revision. 

You still need to run python-updated (oh joy) so it probably isn't
strictly required.

-- 
Diego Elio Pettenò — “Flameeyes”
http://blog.flameeyes.eu/

If you found a .asc file in this mail and know not what it is,
it's a GnuPG digital signature: http://www.gnupg.org/





[gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-python/sympy/files: sympy-0.6.7-python-2.7.patch

2010-10-01 Thread Arfrever Frehtes Taifersar Arahesis
2010-10-01 10:30:22 Peter Volkov napisał(a):
 В Птн, 24/09/2010 в 20:09 +, Arfrever Frehtes Taifersar Arahesis
 (arfrever) пишет:
Added:sympy-0.6.7-python-2.7.patch
Log:
Fix majority of test failures with Python 2.7 (bug #330713).
 
 This patch fixes not test failure, but sympy's ability to work with
 python-2.7.

I'm assuming that you mean the change in stringpict.py, not in runtests.py.
The change in stringpict.py only fixes a doctest in a doc string. The doctest
isn't shown in the patch, so I'm pasting the whole code of this function below:

def right(self, *args):
rPut pictures next to this one.
Returns string, baseline arguments for stringPict.
(Multiline) strings are allowed, and are given a baseline of 0.
 from sympy.printing.pretty.stringpict import stringPict
 print stringPict(10).right( + ,stringPict(1\r-\r2,1))[0]
 1
10 + -
 2


return stringPict.next(self, *args)

http://docs.python.org/library/doctest.html

  Revision  ChangesPath
  1.1  dev-python/sympy/files/sympy-0.6.7-python-2.7.patch
  
  file : 
  http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sympy/files/sympy-0.6.7-python-2.7.patch?rev=1.1view=markup
  plain: 
  http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sympy/files/sympy-0.6.7-python-2.7.patch?rev=1.1content-type=text/plain
  
  Index: sympy-0.6.7-python-2.7.patch
  ===
  http://github.com/sympy/sympy/commit/717516b8ffae806cdfdea8141ceb839107d92431
  
  --- sympy/printing/pretty/stringpict.py
  +++ sympy/printing/pretty/stringpict.py
  @@ -81,7 +81,7 @@
   return '\n'.join(result), newBaseline
   
   def right(self, *args):
  -Put pictures next to this one.
  +rPut pictures next to this one.
   Returns string, baseline arguments for stringPict.
   (Multiline) strings are allowed, and are given a baseline of 0.
from sympy.printing.pretty.stringpict import stringPict
  --- sympy/utilities/runtests.py
  +++ sympy/utilities/runtests.py
  @@ -778,7 +778,7 @@
   def start(self):
   self.write_center(test process starts)
   executable = sys.executable
  -v = sys.version_info
  +v = tuple(sys.version_info)
   python_version = %s.%s.%s-%s-%s % v
   self.write(executable:   %s  (%s)\n\n % (executable, 
  python_version))
   self._t_start = clock()

-- 
Arfrever Frehtes Taifersar Arahesis


signature.asc
Description: This is a digitally signed message part.