Commit e50c021
authored
## Summary
Fixes #8115 — XPU nightly wheels fail to install because runtime deps
such as `tcmlib==1.5.0` disappear from
`https://download.pytorch.org/whl/nightly/xpu/`.
## Root cause
`PACKAGE_LINKS_ALLOW_LIST` packages (the `torch_xpu` deps like `tcmlib`,
plus `numpy`, `nvidia-*`, ...) are link packages whose `index.html`
points at external sources (PyPI CDN / `pypi.nvidia.com`). The
copy-from-parent step copied the parent index into each subdir
**unconditionally**. When the parent index was a relative-path, S3-wheel
index (generated from the wheels that physically live under the subdir),
it overwrote the real links index and dropped externally-hosted versions
such as `tcmlib==1.5.0`.
## Fix
Guard the copy: only copy a links package's `index.html` when it
actually contains external links (`files.pythonhosted.org` or
`pypi.nvidia.com`), and skip it when it only has relative paths.
Everything else is unchanged.
## Test plan
- `python s3_management/manage_v2.py whl/nightly --do-not-upload` and
confirm `whl/nightly/xpu/tcmlib/index.html` retains its external (PyPI)
links incl. `1.5.0`, while `numpy`/`nvidia-*` still propagate into each
`cu*`/`xpu` subdir.
1 parent 2f4c5ad commit e50c021
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
586 | 593 | | |
587 | 594 | | |
588 | 595 | | |
| |||
1067 | 1074 | | |
1068 | 1075 | | |
1069 | 1076 | | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1070 | 1090 | | |
1071 | 1091 | | |
1072 | 1092 | | |
| |||
1228 | 1248 | | |
1229 | 1249 | | |
1230 | 1250 | | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
1231 | 1264 | | |
1232 | 1265 | | |
1233 | 1266 | | |
| |||
0 commit comments