Skip to content

Commit 9296849

Browse files
WillAydjreback
authored andcommitted
Cleaned up Tempita refs and Cython import (#30330)
1 parent a6b047a commit 9296849

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

setup.py

+3-12
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,15 @@ def is_platform_mac():
6363
from distutils.extension import Extension # noqa: E402 isort:skip
6464
from distutils.command.build import build # noqa: E402 isort:skip
6565

66-
try:
67-
if not _CYTHON_INSTALLED:
68-
raise ImportError("No supported version of Cython installed.")
66+
if _CYTHON_INSTALLED:
6967
from Cython.Distutils.old_build_ext import old_build_ext as _build_ext
7068

7169
cython = True
72-
except ImportError:
70+
from Cython import Tempita as tempita
71+
else:
7372
from distutils.command.build_ext import build_ext as _build_ext
7473

7574
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")
8475

8576

8677
_pxi_dep_template = {

0 commit comments

Comments
 (0)