From c84abccbfae001fc7e4613c02d741a010789e482 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Sat, 21 Aug 2021 21:25:02 +0100 Subject: [PATCH] fix netifaces recipe --- recipes/netifaces/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/netifaces/__init__.py b/recipes/netifaces/__init__.py index 55b5d58..26ba1d6 100644 --- a/recipes/netifaces/__init__.py +++ b/recipes/netifaces/__init__.py @@ -19,10 +19,10 @@ class NetifacesRecipe(CompiledComponentsPythonRecipe): if self.ctx.ndk == 'crystax': # only keeps major.minor (discards patch) - python_version = self.ctx.python_recipe.version[0:3] + python_version = self.ctx.python_recipe.version ndk_dir_python = os.path.join(self.ctx.ndk_dir, 'sources/python/', python_version) env['LDFLAGS'] += ' -L{}'.format(os.path.join(ndk_dir_python, 'libs', arch.arch)) - env['LDFLAGS'] += ' -lpython{}m'.format(python_version) + env['LDFLAGS'] += ' -lpython{}'.format(python_version) # until `pythonforandroid/archs.py` gets merged upstream: # https://github.com/kivy/python-for-android/pull/1250/files#diff-569e13021e33ced8b54385f55b49cbe6 env['CFLAGS'] += ' -I{}/include/python/'.format(ndk_dir_python)