Skip to content

[rocm7.2] Drop missing cp313-cp313t from setuptools/wheel install loop#105

Open
JeniferC99 wants to merge 1 commit into
rocm7.2from
jechrist/fix-cp313t-missing
Open

[rocm7.2] Drop missing cp313-cp313t from setuptools/wheel install loop#105
JeniferC99 wants to merge 1 commit into
rocm7.2from
jechrist/fix-cp313t-missing

Conversation

@JeniferC99
Copy link
Copy Markdown

@JeniferC99 JeniferC99 commented May 21, 2026

Why

manywheel/Dockerfile_2_28 aborts every wheel build at step 18:

#18 ERROR: process "/bin/sh -c for cpython_version in \"cp312-cp312\" \"cp313-cp313\" \"cp313-cp313t\"; do \
  /opt/python/${cpython_version}/bin/python -m pip install setuptools wheel; done;" did not complete successfully: exit code: 127

The pinned base image quay.io/pypa/manylinux_2_28_x86_64@sha256:2147aade9c… no longer ships /opt/python/cp313-cp313t/ — free-threaded moved up to cp314-cp314t/cp315-cp315t with CPython.

What

Drop cp313-cp313t from the loop. It's the only reference in the repo and no wheel matrix builds a py3.13t artifact.

Test

Re-ran all four pytorch wheel jobs today with BUILDER_BRANCH=jechrist/fix-cp313t-missing and FORCE_BUILD_AND_PUSH_MANYLINUX_IMAGE=1. The patched Dockerfile_2_28 now builds and pushes rocm/pytorch-private:manylinux-7.2-compute-rocm-rel-7.2-93 cleanly:

Parent job Wheel-builder Manylinux image push
pytorch2.7 #89 pwb pytorch#519 17:43 ✅
pytorch2.8 #85 pwb pytorch#516 17:34 ✅
pytorch2.9 #153 pwb pytorch#520 17:40 ✅
pytorch2.10 #62 pwb pytorch#515 17:18 ✅

Companion PR #106 lands the same fix on main.

The pinned manylinux_2_28_x86_64 base image
(sha256:2147aade9cc6f841c9b610ec7b033299b09e425cd3a652bdf1cb9fc885f86078)
no longer ships /opt/python/cp313-cp313t/. The free-threaded interpreter
moved up with CPython and is now distributed as cp314-cp314t /
cp315-cp315t. Iterating over cp313-cp313t in this RUN therefore aborts
the docker build with exit code 127 ("command not found"), which is what
took down the py3.13 branch in pytorch-manylinux-wheel-builder pytorch#511,
pytorch#512, pytorch#513, pytorch#514 (parents pytorch2.10 #61, pytorch2.8 #84, pytorch2.7
#87, pytorch2.9 pytorch#151) under LKG_BUILD_NUM=93.

Drop cp313-cp313t from the loop. None of the pytorch wheel matrices in
this repo reference 3.13t, so this only removes a no-longer-available
target. The cp312/cp313 entries cover the actual python versions we
build (3.10/3.11/3.12/3.13 are exercised by the wheel jobs; 3.10/3.11
already ship setuptools/wheel by default).

Verified locally: docker build of the patched RUN against the same
pinned base digest now completes successfully.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings May 21, 2026 16:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the manylinux wheel builder Docker image setup step that fails in the Python 3.13 CI branch due to attempting to run a non-existent interpreter path (/opt/python/cp313-cp313t/bin/python) in the setuptools/wheel install loop.

Changes:

  • Removed cp313-cp313t from the /opt/python/... interpreter loop to prevent exit code 127 during Docker builds.
  • Added an inline comment explaining why cp313-cp313t is not present in the upstream manylinux 2_28 image (and where free-threaded builds now live).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants