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

Method get_recipe_env

pythonforandroid/recipe.py:1296–1311  ·  view source on GitHub ↗
(self, arch, **kwargs)

Source from the content-addressed store, hash-verified

1294 return False
1295
1296 def get_recipe_env(self, arch, **kwargs):
1297 env = super().get_recipe_env(arch, **kwargs)
1298 build_dir = self.get_build_dir(arch)
1299 ensure_dir(build_dir)
1300 build_opts = join(build_dir, "build-opts.cfg")
1301
1302 with open(build_opts, "w") as file:
1303 file.write("[bdist_wheel]\nplat_name={}".format(
1304 self.get_wheel_platform_tag(arch.arch)
1305 ))
1306 file.close()
1307
1308 env["DIST_EXTRA_CONFIG"] = build_opts
1309 python_recipe = Recipe.get_recipe("python3", self.ctx)
1310 env["INCLUDEPY"] = python_recipe.include_root(arch.arch)
1311 return env
1312
1313 @staticmethod
1314 def get_wheel_platform_tags(arch, ctx):

Callers 1

build_archMethod · 0.95

Calls 7

ensure_dirFunction · 0.90
formatMethod · 0.80
get_recipeMethod · 0.80
get_recipe_envMethod · 0.45
get_build_dirMethod · 0.45
include_rootMethod · 0.45

Tested by

no test coverage detected