test(docker): upgrade ubuntu14 Python to standalone 3.13.3#1463
Draft
test(docker): upgrade ubuntu14 Python to standalone 3.13.3#1463
Conversation
20250517/3.13.3+20250517 was latest found working as of today. This is mainly to get a currently supported one for tests and tooling. In particular, current mypy no longer supports < 3.9 as python_version.
scop
commented
Oct 12, 2025
| && pyston3 -m pip install -Ir /tmp/requirements.txt | ||
| && python3 -m pip install -Ir /tmp/requirements.txt | ||
|
|
||
| RUN /tmp/install-packages.sh </tmp/test-cmd-list.txt \ |
Owner
Author
There was a problem hiding this comment.
Build fails currently with
[...]
991.4 Setting up mailman (1:2.1.16-2ubuntu0.5) ...
991.5 Looking for enabled languages (this may take some time) ... done.
991.6 File "<string>", line 1
991.6 import sys; print sys.version[:3]
991.6 ^^^^^^^^^^^^^^^^^^^^^
991.6 SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
991.6 dpkg: error processing package mailman (--configure):
991.6 subprocess installed post-installation script returned error exit status 1
[...]
1064.6 Errors were encountered while processing:
1064.6 mailman
1064.8 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
Dockerfile:24
--------------------
23 |
24 | >>> RUN /tmp/install-packages.sh </tmp/test-cmd-list.txt \
25 | >>> && rm -r /tmp/* /root/.cache/pip /var/lib/apt/lists/*
26 |
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c /tmp/install-packages.sh </tmp/test-cmd-list.txt && rm -r /tmp/* /root/.cache/pip /var/lib/apt/lists/*" did not complete successfully: exit code: 123
So we may want to look into doing our python install only after installing the OS packages, as the one in /usr/local/bin becomes the system one, and will start to interfere with package installs etc as shown here.
In fact, it is quite possibly that it can interfere with packages at runtime as well, and consequently our invocations of them for --help parsing and such. We may want to switch installing our python so that it doesn't become the system default one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
20250517/3.13.3+20250517 was latest found working as of today.
This is mainly to get a currently supported one for tests and tooling. In particular, current mypy no longer supports < 3.9 as python_version.
But depending on what we do with bash version support soon, chances are that we don't need to go here at all, #1479