@@ -87,12 +87,6 @@ pip = use_extension("//python/extensions:pip.bzl", "pip")
87
87
for cpu in [
88
88
"x86_64" ,
89
89
"aarch64" ,
90
- # TODO @aignas 2025-05-19: only leave tier 0-1 cpus when stabilizing the
91
- # `pip.default` extension. i.e. drop the below values - users will have to
92
- # define themselves if they need them.
93
- "arm" ,
94
- "ppc" ,
95
- "s390x" ,
96
90
]
97
91
]
98
92
@@ -123,29 +117,31 @@ pip = use_extension("//python/extensions:pip.bzl", "pip")
123
117
"universal2" ,
124
118
"arm64" ,
125
119
],
126
- "x86_64" : [
127
- "universal2" ,
128
- "x86_64" ,
120
+ }.items ()
121
+ ]
122
+
123
+ [
124
+ pip .default (
125
+ arch_name = cpu ,
126
+ config_settings = [
127
+ "@platforms//cpu:{}" .format (cpu ),
128
+ "@platforms//os:windows" ,
129
129
],
130
+ env = {"platform_version" : "0" },
131
+ os_name = "windows" ,
132
+ platform = "windows_{}" .format (cpu ),
133
+ whl_abi_tags = [
134
+ "cp{major}{minor}" ,
135
+ "abi3" ,
136
+ "none" ,
137
+ ],
138
+ whl_platform_tags = whl_platform_tags ,
139
+ )
140
+ for cpu , whl_platform_tags in {
141
+ "x86_64" : ["win_amd64" ],
130
142
}.items ()
131
143
]
132
144
133
- pip .default (
134
- arch_name = "x86_64" ,
135
- config_settings = [
136
- "@platforms//cpu:x86_64" ,
137
- "@platforms//os:windows" ,
138
- ],
139
- env = {"platform_version" : "0" },
140
- os_name = "windows" ,
141
- platform = "windows_x86_64" ,
142
- whl_abi_tags = [
143
- "cp{major}{minor}" ,
144
- "abi3" ,
145
- "none" ,
146
- ],
147
- whl_platform_tags = ["win_amd64" ],
148
- )
149
145
pip .parse (
150
146
# NOTE @aignas 2024-10-26: We have an integration test that depends on us
151
147
# being able to build sdists for this hub, so explicitly set this to False.
0 commit comments