Skip to content

Conversation

@ZeroIntensity
Copy link
Member

@ZeroIntensityZeroIntensity commented Dec 4, 2025

(cherry picked from commit 1a7824a)

ZeroIntensityand others added 2 commits December 3, 2025 22:58
…ntation (pythonGH-142102) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> (cherry picked from commit 1a7824a)
… documentation (pythonGH-142102) (cherry picked from commit 1a7824a) Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@ZeroIntensity
Copy link
MemberAuthor

See #142247 (comment).

@ZeroIntensityZeroIntensity marked this pull request as draft December 4, 2025 04:06
@ZeroIntensity
Copy link
MemberAuthor

@hugovk Quick question -- it seems CI on 3.13 uses Python 3.12, not 3.13. Is that intentional? If so, I need to remove the use of _colorize here on 3.13.

@hugovk
Copy link
Member

Hmm, well we're installing 3.x in this job, which right now is 3.14:

https://github.com/ZeroIntensity/cpython/blob/backport-1a7824a-3.13/.github/workflows/build.yml#L152-L154

However, for the 3.14 branch, when we run configure:

https://github.com/ZeroIntensity/cpython/blob/93459405c92cb5d275bf310b1d5d1dc43967cfdc/.github/workflows/build.yml#L164

We get:

checking for python3.14... python3.14 checking Python for regen version... Python 3.14.0 

But on this 3.13 branch, for some reason we get:

checking for python3.13... no checking for python3.13... no checking for python3.12... python3.12 checking Python for regen version... Python 3.12.3 

I'm not sure why configure is selecting 3.12...

@ZeroIntensity
Copy link
MemberAuthor

Do you know if the configure script on 3.13 checks for 3.14? I think that might be the problem. I'm guessing that Python 3.12 is already installed on the system the CI job is running on, and actions/setup-python installs 3.14, which isn't detected by the configure script, so it falls back to 3.12.

@hugovk
Copy link
Member

Do you know if the configure script on 3.13 checks for 3.14?

No, it only checks the current version and lower.

main:

for ac_prog in python$PACKAGE_VERSION python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3 python

3.14:

for ac_prog in python$PACKAGE_VERSION python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3 python

3.13:

for ac_prog in python$PACKAGE_VERSION python3.13 python3.12 python3.11 python3.10 python3 python

I think that might be the problem. I'm guessing that Python 3.12 is already installed on the system the CI job is running on, and actions/setup-python installs 3.14, which isn't detected by the configure script, so it falls back to 3.12.

Yes, that indeed looks like the problem.

Here's a test workflow that installs a give version, then tries to check for them all:

 python3.15 --version --version ||true python3.14 --version --version ||true python3.13 --version --version ||true python3.12 --version --version ||true python3.11 --version --version ||true python3.10 --version --version ||true

And they all have the given version, plus 3.12. For example with 3.15:

Python 3.15.0a2 (main, Nov 19 2025, 15:10:47) [GCC 13.3.0] /home/runner/work/_temp/9872e36d-a21e-4c3e-8aa1-e6d8f6781c42.sh: line 2: python3.14: command not found /home/runner/work/_temp/9872e36d-a21e-4c3e-8aa1-e6d8f6781c42.sh: line 3: python3.13: command not found Python 3.12.3 (main, Nov 6 2025, 13:44:16) [GCC 13.3.0] /home/runner/work/_temp/9872e36d-a21e-4c3e-8aa1-e6d8f6781c42.sh: line 5: python3.11: command not found /home/runner/work/_temp/9872e36d-a21e-4c3e-8aa1-e6d8f6781c42.sh: line 6: python3.10: command not found 

And it's an old 3.12.3 baked into the image, because when we specifically ask for 3.12 we get the newest 3.12.12:

/home/runner/work/_temp/5205e491-dc12-4355-bc92-e4fd7a15bf8a.sh: line 1: python3.15: command not found /home/runner/work/_temp/5205e491-dc12-4355-bc92-e4fd7a15bf8a.sh: line 2: python3.14: command not found /home/runner/work/_temp/5205e491-dc12-4355-bc92-e4fd7a15bf8a.sh: line 3: python3.13: command not found Python 3.12.12 (main, Oct 10 2025, 01:01:16) [GCC 13.3.0] /home/runner/work/_temp/5205e491-dc12-4355-bc92-e4fd7a15bf8a.sh: line 5: python3.11: command not found /home/runner/work/_temp/5205e491-dc12-4355-bc92-e4fd7a15bf8a.sh: line 6: python3.10: command not found 

@ZeroIntensity
Copy link
MemberAuthor

Thanks, I created an issue: #142457

@ZeroIntensityZeroIntensity marked this pull request as ready for review December 15, 2025 02:42
@ZeroIntensityZeroIntensity merged commit 5569ffe into python:3.13Dec 15, 2025
40 checks passed
@ZeroIntensityZeroIntensity deleted the backport-1a7824a-3.13 branch December 15, 2025 03:19
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ZeroIntensity@hugovk