Skip to content

Commit

Permalink
fix: find libpython for venvs created by uv
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Oct 7, 2024
1 parent 4887f8c commit 7c96ec7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/config.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c96ec7

Please sign in to comment.