python
python copied to clipboard
DNM: disable the GIL (experimental) AND enable the experimental JIT in 3.13+
This is for testing, not for merging.
See:
- https://docs.python.org/3.13/whatsnew/3.13.html#an-experimental-just-in-time-jit-compiler
- https://github.com/docker-library/python/issues/947
- https://github.com/docker-library/python/issues/1009
- https://github.com/docker-library/python/issues/1082
- https://github.com/docker-library/python/pull/1043
- https://github.com/docker-library/python/pull/1044
Test it with something like:
$ docker build --pull https://github.com/docker-library/python.git#refs/pull/1045/merge:3.13/slim-trixie
Btw it seems like enabling both free-threaded mode and the JIT isn't supported currently (to the point where the configure option combination is now disallowed in 3.14.0) - and won't be until 3.15: https://github.com/python/cpython/issues/133171
(So you have to do one or the other)