File tree 1 file changed +3
-12
lines changed
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -63,24 +63,15 @@ def is_platform_mac():
63
63
from distutils .extension import Extension # noqa: E402 isort:skip
64
64
from distutils .command .build import build # noqa: E402 isort:skip
65
65
66
- try :
67
- if not _CYTHON_INSTALLED :
68
- raise ImportError ("No supported version of Cython installed." )
66
+ if _CYTHON_INSTALLED :
69
67
from Cython .Distutils .old_build_ext import old_build_ext as _build_ext
70
68
71
69
cython = True
72
- except ImportError :
70
+ from Cython import Tempita as tempita
71
+ else :
73
72
from distutils .command .build_ext import build_ext as _build_ext
74
73
75
74
cython = False
76
- else :
77
- try :
78
- try :
79
- from Cython import Tempita as tempita
80
- except ImportError :
81
- import tempita
82
- except ImportError :
83
- raise ImportError ("Building pandas requires Tempita: pip install Tempita" )
84
75
85
76
86
77
_pxi_dep_template = {
You can’t perform that action at this time.
0 commit comments