Date: Friday, March 11, 2016 @ 23:37:04 Author: aginiewicz Revision: 166163
python-pyface: pyface now supports python and python2 Added: python-pyface/ python-pyface/repos/ python-pyface/trunk/ python-pyface/trunk/PKGBUILD python-pyface/trunk/ipython_widget.patch Deleted: python2-pyface/ ----------------------+ PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ ipython_widget.patch | 19 +++++++++++++++ 2 files changed, 80 insertions(+) Added: python-pyface/trunk/PKGBUILD =================================================================== --- python-pyface/trunk/PKGBUILD (rev 0) +++ python-pyface/trunk/PKGBUILD 2016-03-11 22:37:04 UTC (rev 166163) @@ -0,0 +1,61 @@ +# $Id$ +# Maintainer: Andrzej Giniewicz <ggi...@gmail.com> + +pkgbase=python-pyface +pkgname=('python2-pyface' 'python-pyface') +pkgver=5.0.0 +pkgrel=1 +pkgdesc="Traits-capable windowing framework" +arch=('any') +url="https://github.com/enthought/pyface" +license=('BSD') +makedepends=('python-setuptools' 'python-traits' 'python2-setuptools' 'python2-traits') +options=(!emptydirs) + +source=("pyface-${pkgver}.tar.gz::https://github.com/enthought/pyface/archive/${pkgver}.tar.gz" + "ipython_widget.patch") +md5sums=('74e0c8f8099d69bf6f18651b626648d8' + 'e2723b5e4191457de7584f0cddce7a4d') + +prepare() { + cd "$srcdir" + patch -p0 < ipython_widget.patch + cp -a pyface-${pkgver} pyface-py2-${pkgver} +} + +build() { + cd "$srcdir"/pyface-py2-$pkgver + + msg "Building Python2" + python2 setup.py build + + cd "$srcdir"/pyface-$pkgver + + msg "Building Python3" + python setup.py build +} + +package_python2-pyface() { + depends=('python2-traits') + optdepends=('python2-pyqt4: for Qt backend (or python2-pyside)' + 'python2-pyside: for Qt backend (or python2-pyqt4)' + 'wxpython: for wx backend') + + cd "$srcdir"/pyface-py2-$pkgver + + python2 setup.py install --root="$pkgdir"/ --optimize=1 + + install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python-pyface() { + depends=('python-traits') + optdepends=('python-pyqt4: for Qt backend (or python2-pyside)' + 'python-pyside: for Qt backend (or python2-pyqt4)') + + cd "$srcdir"/pyface-$pkgver + + python setup.py install --root="$pkgdir"/ --optimize=1 + + install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} Property changes on: python-pyface/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: python-pyface/trunk/ipython_widget.patch =================================================================== --- python-pyface/trunk/ipython_widget.patch (rev 0) +++ python-pyface/trunk/ipython_widget.patch 2016-03-11 22:37:04 UTC (rev 166163) @@ -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')