MCPcopy Index your code
hub / github.com/kivy/python-for-android / build_arch

Method build_arch

pythonforandroid/recipe.py:1572–1594  ·  view source on GitHub ↗
(self, arch)

Source from the content-addressed store, hash-verified

1570 self.extra_build_args.append(arg)
1571
1572 def build_arch(self, arch):
1573 cross_file = join("/tmp", "android.meson.cross")
1574 info("Writing cross file at: {}".format(cross_file))
1575 # write cross config file
1576 with open(cross_file, "w") as file:
1577 file.write(self.write_build_options(arch))
1578 file.close()
1579 # set cross file
1580 self.ensure_args('-Csetup-args=--cross-file', '-Csetup-args={}'.format(cross_file))
1581 # ensure ninja and meson
1582 for dep in [
1583 "ninja",
1584 "meson=={}".format(self.meson_version),
1585 ]:
1586 if dep not in self.hostpython_prerequisites:
1587 self.hostpython_prerequisites.append(dep)
1588
1589 if not self.skip_python:
1590 super().build_arch(arch)
1591 else:
1592 self.install_hostpython_prerequisites(
1593 packages=["build[virtualenv]", "pip", "setuptools", "patchelf"] + self.hostpython_prerequisites
1594 )
1595
1596
1597class RustCompiledComponentsRecipe(PyProjectRecipe):

Callers

nothing calls this directly

Calls 5

write_build_optionsMethod · 0.95
ensure_argsMethod · 0.95
formatMethod · 0.80
build_archMethod · 0.45

Tested by

no test coverage detected