(self, arch)
| 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) |
no test coverage detected