Skip to content

Commit 528c7c3

Browse files
committed
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.
1 parent 1700d8b commit 528c7c3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/pythonx/application.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ defmodule Pythonx.Application do
2626
uv_init_env = Application.compile_env(:pythonx, :uv_init)
2727
pyproject_toml = uv_init_env[:pyproject_toml]
2828
uv_version = uv_init_env[:uv_version] || Pythonx.Uv.default_uv_version()
29-
opts = [uv_version: uv_version]
29+
python = uv_init_env[:python]
30+
opts = [uv_version: uv_version, python: python]
3031

3132
if pyproject_toml do
3233
Pythonx.Uv.fetch(pyproject_toml, true, opts)

0 commit comments

Comments
 (0)