From 528c7c327ea4524cf86481c0d62fb606e7343982 Mon Sep 17 00:00:00 2001 From: AJReade <74275743+AJReade@users.noreply.github.com> Date: Sat, 16 May 2026 17:33:01 +0100 Subject: [PATCH] fix: pass :python option from config to uv fetch/init The :python option (e.g., "3.14t" for free-threaded builds) was read from Application.compile_env but never forwarded to Pythonx.Uv.fetch/3 or Pythonx.Uv.init/3. This caused uv to download the regular Python build instead of the free-threaded variant. --- lib/pythonx/application.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pythonx/application.ex b/lib/pythonx/application.ex index eb7b1da..5563875 100644 --- a/lib/pythonx/application.ex +++ b/lib/pythonx/application.ex @@ -26,7 +26,8 @@ defmodule Pythonx.Application do uv_init_env = Application.compile_env(:pythonx, :uv_init) pyproject_toml = uv_init_env[:pyproject_toml] uv_version = uv_init_env[:uv_version] || Pythonx.Uv.default_uv_version() - opts = [uv_version: uv_version] + python = uv_init_env[:python] + opts = [uv_version: uv_version, python: python] if pyproject_toml do Pythonx.Uv.fetch(pyproject_toml, true, opts)