Commit 22b8f69
authored
s3_management: source PyPI-hosted NVIDIA packages from pypi.org (#8473)
get_package_source_url() routed any package whose name starts with
"nvidia-" or "cuda-" to pypi.nvidia.com. A handful of NVIDIA-named
packages are not published there -- cuda-bindings, cuda-pathfinder,
cuda-python and nvidia-ml-py live on PyPI proper -- so fetching their
simple index 404s. The failure is quiet:
upload_package_using_simple_index() catches the fetch error and returns,
leaving the mirrored index frozen at whatever was last seeded.
The prefix predicate carries two meanings that had to be separated
before the exception could be expressed. is_nvidia_package() also gates
which packages are initialized for CUDA targets only
(get_packages_for_target), so excluding these four inside it would have
leaked them into cpu and rocm targets. It keeps the plain prefix
heuristic; the new uses_nvidia_index() layers the exception on top and
is what the URL builder and the "NVIDIA"/"PyPI" source label now
consult, so the printed label always matches the index actually fetched.
Test Plan:
The four listed packages resolve to pypi.org/simple/, nvidia-cublas-cu12
and cuda-runtime-cu13 still resolve to pypi.nvidia.com, numpy to
pypi.org and pytorch-triton-rocm to repo.amd.com. is_nvidia_package()
returns True for all six NVIDIA names, confirming the CUDA-target gate
is unchanged.
cc @atalman1 parent 27bde84 commit 22b8f69
1 file changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
885 | 896 | | |
886 | | - | |
| 897 | + | |
887 | 898 | | |
888 | 899 | | |
889 | 900 | | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
890 | 906 | | |
891 | 907 | | |
892 | 908 | | |
| |||
895 | 911 | | |
896 | 912 | | |
897 | 913 | | |
898 | | - | |
| 914 | + | |
899 | 915 | | |
900 | 916 | | |
901 | 917 | | |
| |||
1106 | 1122 | | |
1107 | 1123 | | |
1108 | 1124 | | |
1109 | | - | |
| 1125 | + | |
1110 | 1126 | | |
1111 | 1127 | | |
1112 | 1128 | | |
| |||
0 commit comments