ios: avoid cython check for ios platform, we are using it externally anyway.

This commit is contained in:
Mathieu Virbel 2012-12-16 13:47:32 +01:00
parent 9f77e54dc7
commit 781ad0add2
1 changed files with 14 additions and 10 deletions

View File

@ -44,17 +44,21 @@ if kivy_ios_root is not None:
# -----------------------------------------------------------------------------
# Cython check
try:
# check for cython
from Cython.Distutils import build_ext
have_cython = True
except ImportError:
if platform not in ('android', 'ios'):
print '\nCython is missing, its required for compiling kivy !\n\n'
raise
# on python-for-android, cython usage is external
if platform == 'ios':
print '\nCython check avoided.'
have_cython = False
from distutils.command.build_ext import build_ext
else:
try:
# check for cython
from Cython.Distutils import build_ext
have_cython = True
except ImportError:
if platform not in ('android', 'ios'):
print '\nCython is missing, its required for compiling kivy !\n\n'
raise
# on python-for-android, cython usage is external
have_cython = False
from distutils.command.build_ext import build_ext
# -----------------------------------------------------------------------------