void-packages/srcpkgs/python-pandas/patches/cython-0.25.patch

16 lines
497 B
Diff
Raw Normal View History

2016-10-27 14:30:55 +00:00
--- 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