From 358fcbf44903d817f115d4df1074a89a9f151c9c Mon Sep 17 00:00:00 2001 From: Victor Blomqvist Date: Thu, 31 Dec 2020 20:39:03 +0100 Subject: [PATCH] Update Pymunk recipe to 6.0.0 --- pythonforandroid/recipes/pymunk/__init__.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pythonforandroid/recipes/pymunk/__init__.py b/pythonforandroid/recipes/pymunk/__init__.py index 391ae9b743..bf7cb5541c 100644 --- a/pythonforandroid/recipes/pymunk/__init__.py +++ b/pythonforandroid/recipes/pymunk/__init__.py @@ -1,20 +1,16 @@ -from os.path import join from pythonforandroid.recipe import CompiledComponentsPythonRecipe class PymunkRecipe(CompiledComponentsPythonRecipe): name = "pymunk" - version = '5.5.0' - url = 'https://pypi.python.org/packages/source/p/pymunk/pymunk-{version}.zip' - depends = ['cffi', 'setuptools'] + version = "6.0.0" + url = "https://pypi.python.org/packages/source/p/pymunk/pymunk-{version}.zip" + depends = ["cffi", "setuptools"] call_hostpython_via_targetpython = False def get_recipe_env(self, arch): env = super().get_recipe_env(arch) - env['PYTHON_ROOT'] = self.ctx.get_python_install_dir() - env['LDFLAGS'] += " -shared -llog" - env['LDFLAGS'] += ' -L{}'.format(join(self.ctx.ndk_platform, 'usr', 'lib')) - env['LIBS'] = env.get('LIBS', '') + ' -landroid' + env["LDFLAGS"] += " -llog" return env