Skip to content

Update/Add free-threaded CPython framework (macOS) #14470

Description

@giampaolo

Tool name

CPython free-threaded framework (PythonTFramework)

Tool license

PSF

Add or update?

  • Add
  • Update

Desired version

3.14

Approximate size

~100 MB on disk (same .pkg, extra framework)

Brief description of tool

The images ship CPython as a framework, registered with pkgutil as org.python.Python.PythonFramework-3.14. The free-threaded variant, PythonTFramework-3.14, is not registered.

Both live in the same python.org .pkg. The free-threaded one is just a non-default choice, enabled with -applyChoiceChangesXML. So the image already installs the package that contains it.

cibuildwheel skips the install when the receipt is there, so a normal 3.14 build costs 0s. A free-threaded build re-runs the same installer to flip that one choice:

+ sudo installer -pkg python-3.14.6-macos11.pkg -applyChoiceChangesXML ... -target /
installer: Upgrading at base path /
installer: The upgrade was successful.

Note "Upgrading": the package is already installed.

That costs 63.5s on macos-15-intel and 38.7s on macos-15 arm64, every job, every run. It hits anyone publishing free-threaded macOS wheels.

URL for tool's homepage

https://www.python.org/downloads/macos/

Provide a basic test case to validate the tool's functionality.

  pkgutil --pkgs | grep PythonTFramework
  /Library/Frameworks/PythonT.framework/Versions/3.14/bin/python3.14t -VV
  /Library/Frameworks/PythonT.framework/Versions/3.14/bin/python3.14t -c \
      "import sys; assert not sys._is_gil_enabled()"

Platforms where you need the tool

  • Azure DevOps
  • [ x ] GitHub Actions

Runner images where you need the tool

  • Ubuntu 22.04
  • Ubuntu 22.04 Arm64
  • Ubuntu 24.04
  • Ubuntu 24.04 Arm64
  • Ubuntu 26.04
  • Ubuntu 26.04 Arm64
  • Ubuntu Slim
  • [ x ] macOS 14
  • [ x ] macOS 14 Arm64
  • [ x ] macOS 15
  • [ x ] macOS 15 Arm64
  • [ x ] macOS 26
  • [ x ] macOS 26 Arm64
  • Windows Server 2022
  • Windows Server 2025
  • Windows Server 2025 with Visual Studio 2026
  • Windows Desktop 11
  • Windows Desktop 11 with Visual Studio 2026

Can this tool be installed during the build?

Yes. Same .pkg that already installs CPython, run with the choice XML that enables the free-threaded framework.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions