How to use the python-for-android.pythonforandroid.recipes.pyjnius.__init__.PyjniusRecipe function in python-for-android

To help you get started, we’ve selected a few python-for-android examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github codelv / enaml-native / python-for-android / pythonforandroid / recipes / pyjnius / __init__.py View on Github external
def postbuild_arch(self, arch):
        super(PyjniusRecipe, self).postbuild_arch(arch)
        info('Copying pyjnius java class to classes build dir')
        with current_directory(self.get_build_dir(arch.arch)):
            shprint(sh.cp, '-a', join('jnius', 'src', 'org'), self.ctx.javaclass_dir)
github codelv / enaml-native / python-for-android / pythonforandroid / recipes / pyjnius / __init__.py View on Github external
patches = [('sdl2_jnienv_getter.patch', will_build('sdl2')),
               ('genericndkbuild_jnienv_getter.patch', will_build('genericndkbuild'))]

    @property
    def from_crystax(self):
        return ('python2crystax' in self.ctx.recipe_build_order or 
                'python3crystax' in self.ctx.recipe_build_order)

    def postbuild_arch(self, arch):
        super(PyjniusRecipe, self).postbuild_arch(arch)
        info('Copying pyjnius java class to classes build dir')
        with current_directory(self.get_build_dir(arch.arch)):
            shprint(sh.cp, '-a', join('jnius', 'src', 'org'), self.ctx.javaclass_dir)


recipe = PyjniusRecipe()

python-for-android

A development tool that packages Python apps into binaries that can run on Android devices.

MIT
Latest version published 4 months ago

Package Health Score

81 / 100
Full package analysis

Similar packages