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

Method should_build

pythonforandroid/recipe.py:587–596  ·  view source on GitHub ↗

Should perform any necessary test and return True only if it needs building again. Per default we implement a library test, in case that we detect so.

(self, arch)

Source from the content-addressed store, hash-verified

585 touch(join(build_dir, '.patched'))
586
587 def should_build(self, arch):
588 '''Should perform any necessary test and return True only if it needs
589 building again. Per default we implement a library test, in case that
590 we detect so.
591 '''
592 if self.built_libraries:
593 return not all(
594 exists(lib) for lib in self.get_libraries(arch.arch)
595 )
596 return True
597
598 def build_arch(self, arch):
599 '''Run any build tasks for the Recipe. By default, this checks if

Callers 3

build_recipesFunction · 0.45
test_should_buildMethod · 0.45
test_should_buildMethod · 0.45

Calls 1

get_librariesMethod · 0.95

Tested by 2

test_should_buildMethod · 0.36
test_should_buildMethod · 0.36