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

Function wrapper_func

pythonforandroid/toolchain.py:91–105  ·  view source on GitHub ↗
(self, args, **kw)

Source from the content-addressed store, hash-verified

89
90 @wraps(func)
91 def wrapper_func(self, args, **kw):
92 ctx = self.ctx
93 ctx.set_archs(self._archs)
94 ctx.prepare_build_environment(user_sdk_dir=self.sdk_dir,
95 user_ndk_dir=self.ndk_dir,
96 user_android_api=self.android_api,
97 user_ndk_api=self.ndk_api)
98 dist = self._dist
99 if dist.needs_build:
100 if dist.folder_exists(): # possible if the dist is being replaced
101 dist.delete()
102 info_notify('No dist exists that meets your requirements, '
103 'so one will be built.')
104 build_dist_from_args(ctx, dist, args)
105 func(self, args, **kw)
106 return wrapper_func
107
108

Callers

nothing calls this directly

Calls 6

info_notifyFunction · 0.90
build_dist_from_argsFunction · 0.85
set_archsMethod · 0.80
folder_existsMethod · 0.80
deleteMethod · 0.80

Tested by

no test coverage detected