Skip to content

Commit 46167f5

Browse files
doc: Fix pip.default arguments in multi-platform example (#3358)
I was playing around with the [multi-platform PyPI example](https://rules-python.readthedocs.io/en/latest/howto/multi-platform-pypi-deps.html) and noticed that the `pip.default` arguments were wrong. Co-authored-by: Richard Levasseur <[email protected]>
1 parent 7cf098e commit 46167f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/howto/multi-platform-pypi-deps.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,16 @@ pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
163163
# A custom platform for CUDA on glibc linux
164164
pip.default(
165165
platform = "linux_x86_64_cuda12.9",
166-
os = "linux",
167-
cpu = "x86_64",
166+
arch_name = "x86_64",
167+
os_name = "linux",
168168
config_settings = ["@//:is_cuda_12_9"],
169169
)
170170

171171
# A custom platform for musl on linux
172172
pip.default(
173173
platform = "linux_aarch64_musl",
174-
os = "linux",
175-
cpu = "aarch64",
174+
os_name = "linux",
175+
arch_name = "aarch64",
176176
config_settings = ["@//:is_musl"],
177177
)
178178

0 commit comments

Comments
 (0)