From e9ec8263aad60dc16c98723bb22dd2af8e90fc6a Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Thu, 27 Oct 2016 16:30:55 +0200 Subject: [PATCH] python-pandas: support Cython 0.25 --- srcpkgs/python-pandas/patches/cython-0.25.patch | 15 +++++++++++++++ srcpkgs/python-pandas/template | 6 +----- 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/python-pandas/patches/cython-0.25.patch diff --git a/srcpkgs/python-pandas/patches/cython-0.25.patch b/srcpkgs/python-pandas/patches/cython-0.25.patch new file mode 100644 index 0000000000..6a2693193e --- /dev/null +++ b/srcpkgs/python-pandas/patches/cython-0.25.patch @@ -0,0 +1,15 @@ +--- setup.py.orig ++++ setup.py +@@ -85,7 +85,11 @@ def is_platform_mac(): + try: + if not _CYTHON_INSTALLED: + raise ImportError('No supported version of Cython installed.') +- from Cython.Distutils import build_ext as _build_ext ++ try: ++ from Cython.Distutils.old_build_ext import old_build_ext as _build_ext ++ except ImportError: ++ # Pre 0.25 ++ from Cython.Distutils import build_ext as _build_ext + cython = True + except ImportError: + cython = False diff --git a/srcpkgs/python-pandas/template b/srcpkgs/python-pandas/template index f070b1f05c..537a4db5ed 100644 --- a/srcpkgs/python-pandas/template +++ b/srcpkgs/python-pandas/template @@ -1,7 +1,7 @@ # Template file for 'python-pandas' pkgname=python-pandas version=0.19.0 -revision=2 +revision=3 wrksrc="pandas-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools" @@ -17,10 +17,6 @@ license="3-clause-BSD" distfiles="${PYPI_SITE}/p/pandas/pandas-${version}.tar.gz" checksum=4697606cdf023c6b7fcb74e48aaf25cf282a1a00e339d2d274cf1b663748805b -pre_build() { - # strip shebangs - find pandas -type f -name '*.py' -exec sed -i '/^#!.*python$/d' {} + -} post_install() { vlicense LICENSE }