From 03c637de88f06e51392d7c15cc97a72e0c23f7f4 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 24 Jul 2026 15:53:34 +0200 Subject: [PATCH] feat(build_environment): Include abiflags in path Include abiflags in build env path for free-threading (nogil) Python interpreter. Python 3.14 and 3.14t have different ABIs and need separate build environments. Signed-off-by: Christian Heimes --- src/fromager/build_environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fromager/build_environment.py b/src/fromager/build_environment.py index e51a8c30..1be2fe5b 100644 --- a/src/fromager/build_environment.py +++ b/src/fromager/build_environment.py @@ -93,8 +93,9 @@ def __init__( self._ctx = ctx self._req = req self._sdist_root_dir = sdist_root_dir + # abiflags adds 't' for free-threaded (nogil) builds self.path = sdist_root_dir.parent.absolute().joinpath( - f"build-{platform.python_version()}" + f"build-{platform.python_version()}{sys.abiflags}" ) self._createenv()