Date: Saturday, November 21, 2015 @ 16:18:43 Author: aginiewicz Revision: 147321
upgpkg: python2-pyface 5.0.0-1 python2-pyface: new upstream release Added: python2-pyface/trunk/ipython_widget.patch Modified: python2-pyface/trunk/PKGBUILD ----------------------+ PKGBUILD | 10 +++++++--- ipython_widget.patch | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-11-21 14:26:16 UTC (rev 147320) +++ PKGBUILD 2015-11-21 15:18:43 UTC (rev 147321) @@ -2,7 +2,7 @@ # Maintainer: Andrzej Giniewicz <[email protected]> pkgname=python2-pyface -pkgver=4.5.2 +pkgver=5.0.0 pkgrel=1 pkgdesc="Traits-capable windowing framework" arch=('any') @@ -14,8 +14,10 @@ 'wxpython2.8: for wx backend') options=(!emptydirs) -source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/pyface/archive/${pkgver}.tar.gz") -md5sums=('82caa9ea387192a76759176f2fc59d75') +source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/pyface/archive/${pkgver}.tar.gz" + "ipython_widget.patch") +md5sums=('74e0c8f8099d69bf6f18651b626648d8' + 'e2723b5e4191457de7584f0cddce7a4d') build() { cd "$srcdir"/pyface-$pkgver @@ -24,6 +26,8 @@ # (see https://github.com/enthought/pyface/issues/96) sed -e "s/^\(.*\)import wx$/\1import wxversion\n\1wxversion.select(\"2.8\")\n\1import wx/g" -i $(find . -name '*.py') + patch -p1 < ../ipython_widget.patch + python2 setup.py build } Added: ipython_widget.patch =================================================================== --- ipython_widget.patch (rev 0) +++ ipython_widget.patch 2015-11-21 15:18:43 UTC (rev 147321) @@ -0,0 +1,19 @@ +--- pyface-5.0.0/pyface/ipython_widget.py.orig 2015-11-21 16:13:42.171018433 +0100 ++++ pyface-5.0.0/pyface/ipython_widget.py 2015-11-21 16:14:03.557532935 +0100 +@@ -13,6 +13,7 @@ + #------------------------------------------------------------------------------ + """ The implementation of an IPython shell. """ + ++from __future__ import absolute_import + + # Import the toolkit specific version. + try: +@@ -23,8 +24,5 @@ + Could not load the Wx frontend for ipython. + You need to have ipython >= 0.9 installed to use the ipython widget.''' + +- +-from __future__ import absolute_import +- + from .toolkit import toolkit_object + IPythonWidget= toolkit_object('ipython_widget:IPythonWidget')
