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 }