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

Method get_pip_install_args

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

Source from the content-addressed store, hash-verified

1249 return name_str
1250
1251 def get_pip_install_args(self, arch):
1252 python_recipe = Recipe.get_recipe("python3", self.ctx)
1253 opts = [
1254 "install",
1255 self.get_pip_name(),
1256 "--ignore-installed",
1257 "--disable-pip-version-check",
1258 "--python-version",
1259 python_recipe.version,
1260 "--only-binary=:all:",
1261 "--no-deps",
1262 ]
1263 # add platform tags
1264 tags = PyProjectRecipe.get_wheel_platform_tags(arch.arch, self.ctx)
1265 for tag in tags:
1266 opts.append(f"--platform={tag}")
1267
1268 # add extra index urls
1269 for index in self.ctx.extra_index_urls:
1270 opts.extend(["--extra-index-url", index])
1271
1272 return opts
1273
1274 def lookup_prebuilt(self, arch):
1275 pip_options = self.get_pip_install_args(arch)

Callers 2

lookup_prebuiltMethod · 0.95

Calls 3

get_pip_nameMethod · 0.95
get_recipeMethod · 0.80

Tested by

no test coverage detected