]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-144278: Enable overriding sys.implementation's name and cache_tag when building...
authorSteve Dower <steve.dower@python.org>
Tue, 10 Feb 2026 00:01:17 +0000 (00:01 +0000)
committerGitHub <noreply@github.com>
Tue, 10 Feb 2026 00:01:17 +0000 (00:01 +0000)
commita9b6788ae6f045d83e899bd303c92704692c3dc3
tree7a35db41f190d65ec65fe6b305bb40b16ce54731
parent30cfe6ee23a8974625c9860bc401f60ed75b2dea
gh-144278: Enable overriding sys.implementation's name and cache_tag when building sysmodule.c (GH-144293)

Changing the values requires forking and patching, which is intentional. Simply rebuilding from source does not change the implementation enough to justify changing these values - they would still be `cpython` and compatible with existing `.pyc` files. But people who maintain forks are better served by being able to easily override these values in a place that can be forward-ported reliably.
29 files changed:
Lib/compileall.py
Lib/ensurepip/__init__.py
Lib/py_compile.py
Lib/test/support/import_helper.py
Lib/test/test_argparse.py
Lib/test/test_capi/test_import.py
Lib/test/test_cmd_line_script.py
Lib/test/test_compileall.py
Lib/test/test_ensurepip.py
Lib/test/test_import/__init__.py
Lib/test/test_importlib/source/test_file_loader.py
Lib/test/test_importlib/source/test_finder.py
Lib/test/test_importlib/test_abc.py
Lib/test/test_importlib/test_api.py
Lib/test/test_importlib/test_pkg_import.py
Lib/test/test_importlib/test_spec.py
Lib/test/test_importlib/test_util.py
Lib/test/test_importlib/util.py
Lib/test/test_inspect/test_inspect.py
Lib/test/test_multiprocessing_main_handling.py
Lib/test/test_py_compile.py
Lib/test/test_pydoc/test_pydoc.py
Lib/test/test_reprlib.py
Lib/test/test_runpy.py
Lib/test/test_zipimport.py
Lib/zipfile/__init__.py
Misc/NEWS.d/next/Build/2026-01-27-23-39-26.gh-issue-144278.tejFwL.rst [new file with mode: 0644]
Modules/_testlimitedcapi/import.c
Python/sysmodule.c