mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python-pandas: support Cython 0.25
This commit is contained in:
parent
8f51474a7e
commit
e9ec8263aa
2 changed files with 16 additions and 5 deletions
15
srcpkgs/python-pandas/patches/cython-0.25.patch
Normal file
15
srcpkgs/python-pandas/patches/cython-0.25.patch
Normal file
|
@ -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
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-pandas'
|
# Template file for 'python-pandas'
|
||||||
pkgname=python-pandas
|
pkgname=python-pandas
|
||||||
version=0.19.0
|
version=0.19.0
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="pandas-${version}"
|
wrksrc="pandas-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
|
@ -17,10 +17,6 @@ license="3-clause-BSD"
|
||||||
distfiles="${PYPI_SITE}/p/pandas/pandas-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pandas/pandas-${version}.tar.gz"
|
||||||
checksum=4697606cdf023c6b7fcb74e48aaf25cf282a1a00e339d2d274cf1b663748805b
|
checksum=4697606cdf023c6b7fcb74e48aaf25cf282a1a00e339d2d274cf1b663748805b
|
||||||
|
|
||||||
pre_build() {
|
|
||||||
# strip shebangs
|
|
||||||
find pandas -type f -name '*.py' -exec sed -i '/^#!.*python$/d' {} +
|
|
||||||
}
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue