How to use the python-for-android.pythonforandroid.recipes.twisted.__init__.TwistedRecipe 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 / twisted / __init__.py View on Github external
super(TwistedRecipe, self).prebuild_arch(arch)
        # TODO Need to whitelist tty.pyo and termios.so here
        with current_directory(self.get_build_dir(arch.arch)):
            sh.rm('-rf', glob.glob('src/twisted/*/test'))
            sh.rm('-f',glob.glob('src/twisted/test/*.py'))

    def get_recipe_env(self, arch):
        env = super(TwistedRecipe, self).get_recipe_env(arch)
        # We add BUILDLIB_PATH to PYTHONPATH so twisted can find _io.so
        env['PYTHONPATH'] = ':'.join([
            self.ctx.get_site_packages_dir(),
            env['BUILDLIB_PATH'],
        ])
        return env

recipe = TwistedRecipe()
github codelv / enaml-native / python-for-android / pythonforandroid / recipes / twisted / __init__.py View on Github external
def prebuild_arch(self, arch):
        super(TwistedRecipe, self).prebuild_arch(arch)
        # TODO Need to whitelist tty.pyo and termios.so here
        with current_directory(self.get_build_dir(arch.arch)):
            sh.rm('-rf', glob.glob('src/twisted/*/test'))
            sh.rm('-f',glob.glob('src/twisted/test/*.py'))

python-for-android

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

MIT
Latest version published 11 months ago

Package Health Score

76 / 100
Full package analysis

Similar packages