Commit a675cc0
Fix manylinux wheel matching for PEP 425 sorted platform tags (#1401)
The manylinux wheel regex pattern failed to match wheels using the
properly sorted compressed platform tag format specified by PEP 425.
PEP 425 requires compressed platform tags to be sorted alphabetically,
which places legacy tags (manylinux2014) before PEP 600 tags
(manylinux_2_17) since '2' < '_' in ASCII. Some packages like
psycopg-binary have adopted this format in recent releases, causing
get_cached_manylinux_wheel() to return None for valid wheels.
Update build_manylinux_wheel_file_match_pattern() to support:
- Sorted format: manylinux2014_x86_64.manylinux_2_17_x86_64 (PEP 425)
- Unsorted format: manylinux_2_17_x86_64.manylinux2014_x86_64 (legacy)
- Legacy only: manylinux2014_x86_64
Add test_get_manylinux_python314() and
test_manylinux_wheel_platform_tag_sort_order() to verify the fix.
Github-Issue:#1400
Co-authored-by: shane <[email protected]>1 parent fd67ff1 commit a675cc0
2 files changed
+60
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
238 | 288 | | |
239 | 289 | | |
240 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
173 | 182 | | |
174 | | - | |
175 | | - | |
| 183 | + | |
176 | 184 | | |
177 | 185 | | |
178 | 186 | | |
| |||
0 commit comments