Skip to content

Instantly share code, notes, and snippets.

@viblo
Last active January 1, 2021 20:36
Show Gist options
  • Save viblo/befb56e5415fc509c25f1ba0fd6c020c to your computer and use it in GitHub Desktop.
Save viblo/befb56e5415fc509c25f1ba0fd6c020c to your computer and use it in GitHub Desktop.
from os.path import join
from pythonforandroid.recipe import CompiledComponentsPythonRecipe
class PymunkRecipe(CompiledComponentsPythonRecipe):
name = "pymunk"
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"] += " -lm -llog"
# env["LDFLAGS"] += " -L{}".format(join(self.ctx.ndk_platform, "usr", "lib"))
# env["LIBS"] = env.get("LIBS", "") + " -landroid"
return env
recipe = PymunkRecipe()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment