Skip to content

Commit 66b4c83

Browse files
robertwbjreback
authored andcommitted
BLD: Support Cython 0.25
closes #14496
1 parent 050bf60 commit 66b4c83

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

doc/source/whatsnew/v0.19.1.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Performance Improvements
3333
Bug Fixes
3434
~~~~~~~~~
3535

36-
36+
- Compat with Cython 0.25 for building (:issue:`14496`)
3737

3838

3939
- Bug in localizing an ambiguous timezone when a boolean is passed (:issue:`14402`)

setup.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ def is_platform_mac():
8585
try:
8686
if not _CYTHON_INSTALLED:
8787
raise ImportError('No supported version of Cython installed.')
88-
from Cython.Distutils import build_ext as _build_ext
88+
try:
89+
from Cython.Distutils.old_build_ext import old_build_ext as _build_ext
90+
except ImportError:
91+
# Pre 0.25
92+
from Cython.Distutils import build_ext as _build_ext
8993
cython = True
9094
except ImportError:
9195
cython = False

0 commit comments

Comments
 (0)