-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Remove cuda dependencies from non cuda buids #152333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/152333
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 111 PendingAs of commit 572b6a2 with merge base 9c864f9 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@pytorchmergebot merge -f "lint and binary builds look good" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
@pytorchbot cherry-pick --onto release/2.7 -c critical |
Cherry picking #152333Command
Details for Dev Infra teamRaised by workflow job |
) We require Wheel file manipulation stripping suffixes. Also from time to time we inject requirements into wheel METADATA to work around limitations with poetry. Using python and auditwheel make it simplier to modify and maintain this script. For example no RECORD file regeneration with the new SHA is necessary, auditwheel does it for you. Preparing to do Metadata injection since it was removed by this PR: pytorch/pytorch#152333 Related to Poetry issue: pytorch/pytorch#152121 Testing: ``` DRY_RUN=disabled ./promote_pypi_to_staging.sh =-=-=-= Promoting torch's v2.7.1 to pypi staging' =-=-=-= + PACKAGE_VERSION=2.7.1 + PACKAGE_NAME=torch + DRY_RUN=disabled + bash /home/ec2-user/github/test-infra-r27/release/pypi/upload_pypi_to_staging.sh Requesting cu126 https://download.pytorch.org/whl/test/cu126/torch/index.html For torch-2.7.1%2Bcu126 /tmp/tmp.sGF5bXVuGs ~/github/test-infra-r27/release/pypi Processing /whl/test/cu126/torch-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl + curl -fSL -o /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl https://download.pytorch.org/whl/test/cu126/torch-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 784M 100 784M 0 0 34.7M 0 0:00:22 0:00:22 --:--:-- 37.8M preparing wheel in /home/ec2-user/github/test-infra-r27/release/pypi Processing wheel: /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl Removing suffix: 2.7.1+cu126 -> 2.7.1 Renaming torch-2.7.1.dist-info Successfully created: /tmp/tmp.sGF5bXVuGs/torch-2.7.1-cp310-cp310-manylinux_2_28_x86_64.whl + ls -las total 801912 0 drwx------. 2 ec2-user ec2-user 60 May 29 16:24 . 0 drwxrwxrwt. 17 root root 380 May 29 16:24 .. 801912 -rw-r--r--. 1 ec2-user ec2-user 821154516 May 29 16:24 torch-2.7.1-cp310-cp310-manylinux_2_28_x86_64.whl + aws s3 cp torch-2.7.1-cp310-cp310-manylinux_2_28_x86_64.whl s3://pytorch-backup/torch-2.7.1-pypi-staging/ upload: ./torch-2.7.1-cp310-cp310-manylinux_2_28_x86_64.whl to s3://pytorch-backup/torch-2.7.1-pypi-staging/torch-2.7.1-cp310-cp310-manylinux_2_28_x86_64.whl + rm -rf ./torch-2.7.1-cp310-cp310-manylinux_2_28_x86_64.whl Processing /whl/test/cu126/torch-2.7.1%2Bcu126-cp311-cp311-manylinux_2_28_x86_64.whl + curl -fSL -o /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp311-cp311-manylinux_2_28_x86_64.whl https://download.pytorch.org/whl/test/cu126/torch-2.7.1%2Bcu126-cp311-cp311-manylinux_2_28_x86_64.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 784M 100 784M 0 0 32.4M 0 0:00:24 0:00:24 --:--:-- 34.6M preparing wheel in /home/ec2-user/github/test-infra-r27/release/pypi Processing wheel: /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp311-cp311-manylinux_2_28_x86_64.whl Removing suffix: 2.7.1+cu126 -> 2.7.1 Renaming torch-2.7.1.dist-info Successfully created: /tmp/tmp.sGF5bXVuGs/torch-2.7.1-cp311-cp311-manylinux_2_28_x86_64.whl + ls -las total 801932 0 drwx------. 2 ec2-user ec2-user 60 May 29 16:26 . 0 drwxrwxrwt. 17 root root 380 May 29 16:26 .. 801932 -rw-r--r--. 1 ec2-user ec2-user 821174704 May 29 16:26 torch-2.7.1-cp311-cp311-manylinux_2_28_x86_64.whl + aws s3 cp torch-2.7.1-cp311-cp311-manylinux_2_28_x86_64.whl s3://pytorch-backup/torch-2.7.1-pypi-staging/ upload: ./torch-2.7.1-cp311-cp311-manylinux_2_28_x86_64.whl to s3://pytorch-backup/torch-2.7.1-pypi-staging/torch-2.7.1-cp311-cp311-manylinux_2_28_x86_64.whl + rm -rf ./torch-2.7.1-cp311-cp311-manylinux_2_28_x86_64.whl Processing /whl/test/cu126/torch-2.7.1%2Bcu126-cp312-cp312-manylinux_2_28_x86_64.whl + curl -fSL -o /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp312-cp312-manylinux_2_28_x86_64.whl https://download.pytorch.org/whl/test/cu126/torch-2.7.1%2Bcu126-cp312-cp312-manylinux_2_28_x86_64.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 783M 100 783M 0 0 34.0M 0 0:00:23 0:00:23 --:--:-- 37.1M preparing wheel in /home/ec2-user/github/test-infra-r27/release/pypi Processing wheel: /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp312-cp312-manylinux_2_28_x86_64.whl Removing suffix: 2.7.1+cu126 -> 2.7.1 Renaming torch-2.7.1.dist-info Successfully created: /tmp/tmp.sGF5bXVuGs/torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl + ls -las total 801784 0 drwx------. 2 ec2-user ec2-user 60 May 29 16:28 . 0 drwxrwxrwt. 17 root root 380 May 29 16:28 .. 801784 -rw-r--r--. 1 ec2-user ec2-user 821025792 May 29 16:28 torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl + aws s3 cp torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl s3://pytorch-backup/torch-2.7.1-pypi-staging/ upload: ./torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl to s3://pytorch-backup/torch-2.7.1-pypi-staging/torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl + rm -rf ./torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl Processing /whl/test/cu126/torch-2.7.1%2Bcu126-cp313-cp313-manylinux_2_28_x86_64.whl + curl -fSL -o /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp313-cp313-manylinux_2_28_x86_64.whl https://download.pytorch.org/whl/test/cu126/torch-2.7.1%2Bcu126-cp313-cp313-manylinux_2_28_x86_64.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 783M 100 783M 0 0 34.5M 0 0:00:22 0:00:22 --:--:-- 39.1M preparing wheel in /home/ec2-user/github/test-infra-r27/release/pypi Processing wheel: /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp313-cp313-manylinux_2_28_x86_64.whl Removing suffix: 2.7.1+cu126 -> 2.7.1 Renaming torch-2.7.1.dist-info Successfully created: /tmp/tmp.sGF5bXVuGs/torch-2.7.1-cp313-cp313-manylinux_2_28_x86_64.whl + ls -las total 801792 0 drwx------. 2 ec2-user ec2-user 60 May 29 16:31 . 0 drwxrwxrwt. 17 root root 380 May 29 16:31 .. 801792 -rw-r--r--. 1 ec2-user ec2-user 821033192 May 29 16:31 torch-2.7.1-cp313-cp313-manylinux_2_28_x86_64.whl + aws s3 cp torch-2.7.1-cp313-cp313-manylinux_2_28_x86_64.whl s3://pytorch-backup/torch-2.7.1-pypi-staging/ upload: ./torch-2.7.1-cp313-cp313-manylinux_2_28_x86_64.whl to s3://pytorch-backup/torch-2.7.1-pypi-staging/torch-2.7.1-cp313-cp313-manylinux_2_28_x86_64.whl + rm -rf ./torch-2.7.1-cp313-cp313-manylinux_2_28_x86_64.whl Processing /whl/test/cu126/torch-2.7.1%2Bcu126-cp313-cp313t-manylinux_2_28_x86_64.whl + curl -fSL -o /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp313-cp313t-manylinux_2_28_x86_64.whl https://download.pytorch.org/whl/test/cu126/torch-2.7.1%2Bcu126-cp313-cp313t-manylinux_2_28_x86_64.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 783M 100 783M 0 0 29.9M 0 0:00:26 0:00:26 --:--:-- 31.4M preparing wheel in /home/ec2-user/github/test-infra-r27/release/pypi Processing wheel: /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp313-cp313t-manylinux_2_28_x86_64.whl Removing suffix: 2.7.1+cu126 -> 2.7.1 Renaming torch-2.7.1.dist-info Successfully created: /tmp/tmp.sGF5bXVuGs/torch-2.7.1-cp313-cp313t-manylinux_2_28_x86_64.whl + ls -las total 801856 0 drwx------. 2 ec2-user ec2-user 60 May 29 16:33 . 0 drwxrwxrwt. 17 root root 380 May 29 16:33 .. 801856 -rw-r--r--. 1 ec2-user ec2-user 821098066 May 29 16:33 torch-2.7.1-cp313-cp313t-manylinux_2_28_x86_64.whl + aws s3 cp torch-2.7.1-cp313-cp313t-manylinux_2_28_x86_64.whl s3://pytorch-backup/torch-2.7.1-pypi-staging/ upload: ./torch-2.7.1-cp313-cp313t-manylinux_2_28_x86_64.whl to s3://pytorch-backup/torch-2.7.1-pypi-staging/torch-2.7.1-cp313-cp313t-manylinux_2_28_x86_64.whl + rm -rf ./torch-2.7.1-cp313-cp313t-manylinux_2_28_x86_64.whl Processing /whl/test/cu126/torch-2.7.1%2Bcu126-cp39-cp39-manylinux_2_28_x86_64.whl + curl -fSL -o /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp39-cp39-manylinux_2_28_x86_64.whl https://download.pytorch.org/whl/test/cu126/torch-2.7.1%2Bcu126-cp39-cp39-manylinux_2_28_x86_64.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 784M 100 784M 0 0 33.0M 0 0:00:23 0:00:23 --:--:-- 32.0M preparing wheel in /home/ec2-user/github/test-infra-r27/release/pypi Processing wheel: /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp39-cp39-manylinux_2_28_x86_64.whl Removing suffix: 2.7.1+cu126 -> 2.7.1 Renaming torch-2.7.1.dist-info Successfully created: /tmp/tmp.sGF5bXVuGs/torch-2.7.1-cp39-cp39-manylinux_2_28_x86_64.whl + ls -las total 801904 0 drwx------. 2 ec2-user ec2-user 60 May 29 16:35 . 0 drwxrwxrwt. 17 root root 380 May 29 16:35 .. 801904 -rw-r--r--. 1 ec2-user ec2-user 821146689 May 29 16:35 torch-2.7.1-cp39-cp39-manylinux_2_28_x86_64.whl + aws s3 cp torch-2.7.1-cp39-cp39-manylinux_2_28_x86_64.whl s3://pytorch-backup/torch-2.7.1-pypi-staging/ upload: ./torch-2.7.1-cp39-cp39-manylinux_2_28_x86_64.whl to s3://pytorch-backup/torch-2.7.1-pypi-staging/torch-2.7.1-cp39-cp39-manylinux_2_28_x86_64.whl + rm -rf ./torch-2.7.1-cp39-cp39-manylinux_2_28_x86_64.whl ```
) We require Wheel file manipulation stripping suffixes. Also from time to time we inject requirements into wheel METADATA to work around limitations with poetry. Using python and auditwheel make it simplier to modify and maintain this script. For example no RECORD file regeneration with the new SHA is necessary, auditwheel does it for you. Preparing to do Metadata injection since it was removed by this PR: pytorch/pytorch#152333 Related to Poetry issue: pytorch/pytorch#152121 Testing: ``` DRY_RUN=disabled ./promote_pypi_to_staging.sh =-=-=-= Promoting torch's v2.7.1 to pypi staging' =-=-=-= + PACKAGE_VERSION=2.7.1 + PACKAGE_NAME=torch + DRY_RUN=disabled + bash /home/ec2-user/github/test-infra-r27/release/pypi/upload_pypi_to_staging.sh Requesting cu126 https://download.pytorch.org/whl/test/cu126/torch/index.html For torch-2.7.1%2Bcu126 /tmp/tmp.sGF5bXVuGs ~/github/test-infra-r27/release/pypi Processing /whl/test/cu126/torch-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl + curl -fSL -o /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl https://download.pytorch.org/whl/test/cu126/torch-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 784M 100 784M 0 0 34.7M 0 0:00:22 0:00:22 --:--:-- 37.8M preparing wheel in /home/ec2-user/github/test-infra-r27/release/pypi Processing wheel: /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl Removing suffix: 2.7.1+cu126 -> 2.7.1 Renaming torch-2.7.1.dist-info Successfully created: /tmp/tmp.sGF5bXVuGs/torch-2.7.1-cp310-cp310-manylinux_2_28_x86_64.whl + ls -las total 801912 0 drwx------. 2 ec2-user ec2-user 60 May 29 16:24 . 0 drwxrwxrwt. 17 root root 380 May 29 16:24 .. 801912 -rw-r--r--. 1 ec2-user ec2-user 821154516 May 29 16:24 torch-2.7.1-cp310-cp310-manylinux_2_28_x86_64.whl + aws s3 cp torch-2.7.1-cp310-cp310-manylinux_2_28_x86_64.whl s3://pytorch-backup/torch-2.7.1-pypi-staging/ upload: ./torch-2.7.1-cp310-cp310-manylinux_2_28_x86_64.whl to s3://pytorch-backup/torch-2.7.1-pypi-staging/torch-2.7.1-cp310-cp310-manylinux_2_28_x86_64.whl + rm -rf ./torch-2.7.1-cp310-cp310-manylinux_2_28_x86_64.whl Processing /whl/test/cu126/torch-2.7.1%2Bcu126-cp311-cp311-manylinux_2_28_x86_64.whl + curl -fSL -o /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp311-cp311-manylinux_2_28_x86_64.whl https://download.pytorch.org/whl/test/cu126/torch-2.7.1%2Bcu126-cp311-cp311-manylinux_2_28_x86_64.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 784M 100 784M 0 0 32.4M 0 0:00:24 0:00:24 --:--:-- 34.6M preparing wheel in /home/ec2-user/github/test-infra-r27/release/pypi Processing wheel: /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp311-cp311-manylinux_2_28_x86_64.whl Removing suffix: 2.7.1+cu126 -> 2.7.1 Renaming torch-2.7.1.dist-info Successfully created: /tmp/tmp.sGF5bXVuGs/torch-2.7.1-cp311-cp311-manylinux_2_28_x86_64.whl + ls -las total 801932 0 drwx------. 2 ec2-user ec2-user 60 May 29 16:26 . 0 drwxrwxrwt. 17 root root 380 May 29 16:26 .. 801932 -rw-r--r--. 1 ec2-user ec2-user 821174704 May 29 16:26 torch-2.7.1-cp311-cp311-manylinux_2_28_x86_64.whl + aws s3 cp torch-2.7.1-cp311-cp311-manylinux_2_28_x86_64.whl s3://pytorch-backup/torch-2.7.1-pypi-staging/ upload: ./torch-2.7.1-cp311-cp311-manylinux_2_28_x86_64.whl to s3://pytorch-backup/torch-2.7.1-pypi-staging/torch-2.7.1-cp311-cp311-manylinux_2_28_x86_64.whl + rm -rf ./torch-2.7.1-cp311-cp311-manylinux_2_28_x86_64.whl Processing /whl/test/cu126/torch-2.7.1%2Bcu126-cp312-cp312-manylinux_2_28_x86_64.whl + curl -fSL -o /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp312-cp312-manylinux_2_28_x86_64.whl https://download.pytorch.org/whl/test/cu126/torch-2.7.1%2Bcu126-cp312-cp312-manylinux_2_28_x86_64.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 783M 100 783M 0 0 34.0M 0 0:00:23 0:00:23 --:--:-- 37.1M preparing wheel in /home/ec2-user/github/test-infra-r27/release/pypi Processing wheel: /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp312-cp312-manylinux_2_28_x86_64.whl Removing suffix: 2.7.1+cu126 -> 2.7.1 Renaming torch-2.7.1.dist-info Successfully created: /tmp/tmp.sGF5bXVuGs/torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl + ls -las total 801784 0 drwx------. 2 ec2-user ec2-user 60 May 29 16:28 . 0 drwxrwxrwt. 17 root root 380 May 29 16:28 .. 801784 -rw-r--r--. 1 ec2-user ec2-user 821025792 May 29 16:28 torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl + aws s3 cp torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl s3://pytorch-backup/torch-2.7.1-pypi-staging/ upload: ./torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl to s3://pytorch-backup/torch-2.7.1-pypi-staging/torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl + rm -rf ./torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl Processing /whl/test/cu126/torch-2.7.1%2Bcu126-cp313-cp313-manylinux_2_28_x86_64.whl + curl -fSL -o /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp313-cp313-manylinux_2_28_x86_64.whl https://download.pytorch.org/whl/test/cu126/torch-2.7.1%2Bcu126-cp313-cp313-manylinux_2_28_x86_64.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 783M 100 783M 0 0 34.5M 0 0:00:22 0:00:22 --:--:-- 39.1M preparing wheel in /home/ec2-user/github/test-infra-r27/release/pypi Processing wheel: /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp313-cp313-manylinux_2_28_x86_64.whl Removing suffix: 2.7.1+cu126 -> 2.7.1 Renaming torch-2.7.1.dist-info Successfully created: /tmp/tmp.sGF5bXVuGs/torch-2.7.1-cp313-cp313-manylinux_2_28_x86_64.whl + ls -las total 801792 0 drwx------. 2 ec2-user ec2-user 60 May 29 16:31 . 0 drwxrwxrwt. 17 root root 380 May 29 16:31 .. 801792 -rw-r--r--. 1 ec2-user ec2-user 821033192 May 29 16:31 torch-2.7.1-cp313-cp313-manylinux_2_28_x86_64.whl + aws s3 cp torch-2.7.1-cp313-cp313-manylinux_2_28_x86_64.whl s3://pytorch-backup/torch-2.7.1-pypi-staging/ upload: ./torch-2.7.1-cp313-cp313-manylinux_2_28_x86_64.whl to s3://pytorch-backup/torch-2.7.1-pypi-staging/torch-2.7.1-cp313-cp313-manylinux_2_28_x86_64.whl + rm -rf ./torch-2.7.1-cp313-cp313-manylinux_2_28_x86_64.whl Processing /whl/test/cu126/torch-2.7.1%2Bcu126-cp313-cp313t-manylinux_2_28_x86_64.whl + curl -fSL -o /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp313-cp313t-manylinux_2_28_x86_64.whl https://download.pytorch.org/whl/test/cu126/torch-2.7.1%2Bcu126-cp313-cp313t-manylinux_2_28_x86_64.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 783M 100 783M 0 0 29.9M 0 0:00:26 0:00:26 --:--:-- 31.4M preparing wheel in /home/ec2-user/github/test-infra-r27/release/pypi Processing wheel: /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp313-cp313t-manylinux_2_28_x86_64.whl Removing suffix: 2.7.1+cu126 -> 2.7.1 Renaming torch-2.7.1.dist-info Successfully created: /tmp/tmp.sGF5bXVuGs/torch-2.7.1-cp313-cp313t-manylinux_2_28_x86_64.whl + ls -las total 801856 0 drwx------. 2 ec2-user ec2-user 60 May 29 16:33 . 0 drwxrwxrwt. 17 root root 380 May 29 16:33 .. 801856 -rw-r--r--. 1 ec2-user ec2-user 821098066 May 29 16:33 torch-2.7.1-cp313-cp313t-manylinux_2_28_x86_64.whl + aws s3 cp torch-2.7.1-cp313-cp313t-manylinux_2_28_x86_64.whl s3://pytorch-backup/torch-2.7.1-pypi-staging/ upload: ./torch-2.7.1-cp313-cp313t-manylinux_2_28_x86_64.whl to s3://pytorch-backup/torch-2.7.1-pypi-staging/torch-2.7.1-cp313-cp313t-manylinux_2_28_x86_64.whl + rm -rf ./torch-2.7.1-cp313-cp313t-manylinux_2_28_x86_64.whl Processing /whl/test/cu126/torch-2.7.1%2Bcu126-cp39-cp39-manylinux_2_28_x86_64.whl + curl -fSL -o /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp39-cp39-manylinux_2_28_x86_64.whl https://download.pytorch.org/whl/test/cu126/torch-2.7.1%2Bcu126-cp39-cp39-manylinux_2_28_x86_64.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 784M 100 784M 0 0 33.0M 0 0:00:23 0:00:23 --:--:-- 32.0M preparing wheel in /home/ec2-user/github/test-infra-r27/release/pypi Processing wheel: /tmp/tmp.QKhLmXhoxI/torch-2.7.1%2Bcu126-cp39-cp39-manylinux_2_28_x86_64.whl Removing suffix: 2.7.1+cu126 -> 2.7.1 Renaming torch-2.7.1.dist-info Successfully created: /tmp/tmp.sGF5bXVuGs/torch-2.7.1-cp39-cp39-manylinux_2_28_x86_64.whl + ls -las total 801904 0 drwx------. 2 ec2-user ec2-user 60 May 29 16:35 . 0 drwxrwxrwt. 17 root root 380 May 29 16:35 .. 801904 -rw-r--r--. 1 ec2-user ec2-user 821146689 May 29 16:35 torch-2.7.1-cp39-cp39-manylinux_2_28_x86_64.whl + aws s3 cp torch-2.7.1-cp39-cp39-manylinux_2_28_x86_64.whl s3://pytorch-backup/torch-2.7.1-pypi-staging/ upload: ./torch-2.7.1-cp39-cp39-manylinux_2_28_x86_64.whl to s3://pytorch-backup/torch-2.7.1-pypi-staging/torch-2.7.1-cp39-cp39-manylinux_2_28_x86_64.whl + rm -rf ./torch-2.7.1-cp39-cp39-manylinux_2_28_x86_64.whl ```
These dependancies added to fix poetry issue on pypi. However inclusion of these dependencies creates issue with poetry on download.pytorch.org due to poetry reading first available wheel on index for METADATA requirements. Hence all metadata requirements for CPU wheels can't list any cuda dependencies.
Injecting these dependencies via prep for pypi will need to be done via:
https://github.com/pytorch/test-infra/blob/main/release/pypi/prep_binary_for_pypi.sh
Ref: #152121