From e9fbb484633d379733f1dea6a42cada4784ce163 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 24 Feb 2012 11:24:21 +0100 Subject: [PATCH] fix setup.py for python-for-android project --- setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 2e1a2c51a..febca3e4d 100644 --- a/setup.py +++ b/setup.py @@ -159,8 +159,8 @@ def determine_gl_flags(): flags['include_dirs'] = ['/usr/local/include'] flags['extra_link_args'] = ['-L', '/usr/local/lib'] elif platform == 'android': - flags['include_dirs'] += [join(ndkplatform, 'usr', 'include')] - flags['extra_link_args'] += ['-L', join(ndkplatform, 'usr', 'lib')] + flags['include_dirs'] = [join(ndkplatform, 'usr', 'include')] + flags['extra_link_args'] = ['-L', join(ndkplatform, 'usr', 'lib')] flags['libraries'] = ['GLESv2'] else: flags['libraries'] = ['GL'] @@ -228,8 +228,10 @@ def get_extensions_from_sources(sources): pyx = join(dirname(__file__), 'kivy', pyx) if not have_cython: pyx = '%s.c' % pyx[:-4] + depends = [] + else: + depends = flags.pop('depends', []) module_name = get_modulename_from_file(pyx) - depends = flags.pop('depends', []) flags_clean = {} for key, value in flags.iteritems(): if len(value):