FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 10-01-2010, 10:01 AM
Diego Elio Pettenò
 
Default gentoo-x86 commit in dev-python/sympy/files: sympy-0.6.7-python-2.7.patch

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/
 
Old 10-01-2010, 11:32 AM
Peter Volkov
 
Default gentoo-x86 commit in dev-python/sympy/files: sympy-0.6.7-python-2.7.patch

В Птн, 01/10/2010 в 12:01 +0200, 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.

I was talking about case where python-2.7 it is already installed
(although it is hard masked it is already in the tree). In such case
python-updater will not be run.

--
Peter.
 
Old 10-01-2010, 06:03 PM
Diego Elio Pettenò
 
Default gentoo-x86 commit in dev-python/sympy/files: sympy-0.6.7-python-2.7.patch

Il giorno ven, 01/10/2010 alle 15.32 +0400, Peter Volkov ha scritto:
>
> I was talking about case where python-2.7 it is already installed
> (although it is hard masked it is already in the tree). In such case
> python-updater will not be run.

Ah sorry I misread that "it" as sympy, not Python… yes I guess you're
right about that.

--
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/
 
Old 10-01-2010, 06:29 PM
Arfrever Frehtes Taifersar Arahesis
 
Default gentoo-x86 commit in dev-python/sympy/files: sympy-0.6.7-python-2.7.patch

2010-10-01 10:30:22 Peter Volkov napisał(a):
> В Птн, 24/09/2010 в 20:09 +0000, 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):
r"""Put 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
-
2",1))[0]
1
10 + -
2

"""
return stringPict.next(self, *args)

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

> > Revision Changes Path
> > 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.1&view=markup
> > plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sympy/files/sympy-0.6.7-python-2.7.patch?rev=1.1&content-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 '
'.join(result), newBaseline
> >
> > def right(self, *args):
> > - """Put pictures next to this one.
> > + r"""Put 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)

" % (executable, python_version))
> > self._t_start = clock()

--
Arfrever Frehtes Taifersar Arahesis
 

Thread Tools




All times are GMT. The time now is 08:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org