From 7c96ec74646d62266fbd7b293696d2a5ba2ccfc8 Mon Sep 17 00:00:00 2001 From: Tomasz Kalinowski Date: Mon, 7 Oct 2024 12:32:28 -0400 Subject: [PATCH] fix: find `libpython` for venvs created by `uv` --- R/config.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/config.R b/R/config.R index 23c98b22f..fb8abfffd 100644 --- a/R/config.R +++ b/R/config.R @@ -831,7 +831,8 @@ python_config <- function(python, # try to resolve libpython in this location pattern <- sprintf("^libpython%sd?m?%s", version, ext) - candidates <- list.files(src, pattern = pattern, full.names = TRUE) + candidates <- list.files(c(src, file.path(src, "lib")), + pattern = pattern, full.names = TRUE) if (length(candidates)) { libpython <- candidates break