Skip to content

Conversation

scop
Copy link
Owner

@scop scop commented Oct 12, 2025

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.

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.
&& 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 \
Copy link
Owner Author

Choose a reason for hiding this comment

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

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.

@scop scop marked this pull request as draft October 12, 2025 20:48
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.

1 participant