How to use the python-for-android.recipes.libsecp256k1.__init__.LibSecp256k1Recipe 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 AndreMiras / PyWallet / python-for-android / recipes / libsecp256k1 / __init__.py View on Github external
def build_arch(self, arch):
        super(LibSecp256k1Recipe, self).build_arch(arch)
        env = self.get_recipe_env(arch)
        with current_directory(self.get_build_dir(arch.arch)):
            if not exists('configure'):
                shprint(sh.Command('./autogen.sh'), _env=env)
            shprint(sh.Command('./configure'), '--host=' + arch.toolchain_prefix,
                    '--prefix=' + self.ctx.get_python_install_dir(),
                    '--enable-shared',
                    '--enable-module-recovery',
                    '--enable-experimental',
                    '--enable-module-ecdh',
                    _env=env)
            shprint(sh.make, '-j' + str(cpu_count()), _env=env)
            libs = ['.libs/libsecp256k1.so']
            self.install_libs(arch, *libs)
github AndreMiras / PyWallet / python-for-android / recipes / libsecp256k1 / __init__.py View on Github external
env = self.get_recipe_env(arch)
        with current_directory(self.get_build_dir(arch.arch)):
            if not exists('configure'):
                shprint(sh.Command('./autogen.sh'), _env=env)
            shprint(sh.Command('./configure'), '--host=' + arch.toolchain_prefix,
                    '--prefix=' + self.ctx.get_python_install_dir(),
                    '--enable-shared',
                    '--enable-module-recovery',
                    '--enable-experimental',
                    '--enable-module-ecdh',
                    _env=env)
            shprint(sh.make, '-j' + str(cpu_count()), _env=env)
            libs = ['.libs/libsecp256k1.so']
            self.install_libs(arch, *libs)

recipe = LibSecp256k1Recipe()

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