Skip to content
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

Fixes the build on kivy-ios, as we do not have access to Cython #101

Merged
merged 1 commit into from
Oct 15, 2023
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
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ def build_extensions(self):
config_pxi_need_update = True
config_pxi = 'DEF PLATFORM = "{}"\n'.format(dev_platform)
config_pxi += 'DEF ARCH = "{}"\n'.format(arch)
import Cython
cython3 = Cython.__version__.startswith('3.')
if dev_platform == 'ios':
cython3 = False # Assume Cython 0.29, which is what we use for kivy-ios (ATM)
else:
import Cython
cython3 = Cython.__version__.startswith('3.')
config_pxi += f"DEF PYOBJUS_CYTHON_3 = {cython3}"
if exists(config_pxi_fn):
with open(config_pxi_fn) as fd:
Expand Down
Loading