mirror of https://github.com/kivy/kivy.git
setup: avoid cython for android/ios build, and ensure build_ext is imported
This commit is contained in:
parent
050016cc96
commit
e9c5b01231
16
setup.py
16
setup.py
|
@ -44,21 +44,21 @@ if kivy_ios_root is not None:
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Cython check
|
# Cython check
|
||||||
if platform == 'ios':
|
# on python-for-android and kivy-ios, cython usage is external
|
||||||
|
have_cython = False
|
||||||
|
if platform in ('ios', 'android'):
|
||||||
print '\nCython check avoided.'
|
print '\nCython check avoided.'
|
||||||
have_cython = False
|
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
# check for cython
|
# check for cython
|
||||||
from Cython.Distutils import build_ext
|
from Cython.Distutils import build_ext
|
||||||
have_cython = True
|
have_cython = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
if platform not in ('android', 'ios'):
|
print '\nCython is missing, its required for compiling kivy !\n\n'
|
||||||
print '\nCython is missing, its required for compiling kivy !\n\n'
|
raise
|
||||||
raise
|
|
||||||
# on python-for-android, cython usage is external
|
if not have_cython:
|
||||||
have_cython = False
|
from distutils.command.build_ext import build_ext
|
||||||
from distutils.command.build_ext import build_ext
|
|
||||||
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue