skip cython in setup_requires if not available

This commit is contained in:
Ryan Pessa 2016-06-04 18:46:07 -05:00
parent 5521c87bdc
commit 2bc57e3964
1 changed files with 3 additions and 1 deletions

View File

@ -177,8 +177,10 @@ cython_unsupported = '''\
cython_unsupported_append) cython_unsupported_append)
have_cython = False have_cython = False
skip_cython = False
if platform in ('ios', 'android'): if platform in ('ios', 'android'):
print('\nCython check avoided.') print('\nCython check avoided.')
skip_cython = True
else: else:
try: try:
# check for cython # check for cython
@ -1028,4 +1030,4 @@ setup(
dependency_links=[ dependency_links=[
'https://github.com/kivy-garden/garden/archive/master.zip'], 'https://github.com/kivy-garden/garden/archive/master.zip'],
install_requires=['Kivy-Garden>=0.1.4', 'docutils', 'pygments'], install_requires=['Kivy-Garden>=0.1.4', 'docutils', 'pygments'],
setup_requires=['cython>=' + MIN_CYTHON_STRING]) setup_requires=['cython>=' + MIN_CYTHON_STRING] if not skip_cython else [])