Skip to content

Cleaned up Tempita refs and Cython import #30330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,24 +63,15 @@ def is_platform_mac():
from distutils.extension import Extension # noqa: E402 isort:skip
from distutils.command.build import build # noqa: E402 isort:skip

try:
if not _CYTHON_INSTALLED:
raise ImportError("No supported version of Cython installed.")
if _CYTHON_INSTALLED:
from Cython.Distutils.old_build_ext import old_build_ext as _build_ext

cython = True
except ImportError:
from Cython import Tempita as tempita
else:
from distutils.command.build_ext import build_ext as _build_ext

cython = False
else:
try:
try:
from Cython import Tempita as tempita
except ImportError:
import tempita
except ImportError:
raise ImportError("Building pandas requires Tempita: pip install Tempita")


_pxi_dep_template = {
Expand Down