On 14/10/2026 06:33, Vincent Habchi wrote:
Hi Josh,

So python 3.15 / python 3.15 freethreading have been released, we might resume 
this (sorry, I’ve been super busy lately).

I'm not sure what python.runtime is. The freethreaded build can be changed to 
use the same site-packages directory as the standard one. There would be no 
separate py315t subports since py315 ones would be usable by both. (Pure python 
modules are automatically fine, extension modules are fine if built for the 
right ABI(s).)

I understand that ABI 3.15t ⊂ ABI 3.15. But what will happen when you want to 
build a py-* port? Won’t the script look for python315 instead of 
python315-freethreading and try to install into 
/opt/local/Library/Frameworks/Python.framework/Versions/3.15 instead of 
/opt/local/Library/Frameworks/Python.framework/Versions/3.15t?
The site-packages for 3.15t is now a symlink to that for 3.15. Pure python modules are automatically fine for both (if used with appropriate synchronisation etc), and most extension modules will be loadable but will re-enable the GIL. Extensions that support freethreading will need to be updated to use abi3t or build for both ABIs. Python is smart enough to load the best ABI variant of an extension if multiple exist on disk.

How exactly to make things build for the desired ABI is different for every build back end. TBH the tool support is not really there yet in a lot of cases, for example setuptools does not yet support selecting abi3t.

- Josh

Reply via email to