Skip to content

Commit

Permalink
Merge pull request #1678 from rstudio/fix-use-uv-venv
Browse files Browse the repository at this point in the history
Fix: find `libpython` for venvs created by `uv`
  • Loading branch information
t-kalinowski authored Oct 7, 2024
2 parents 4887f8c + 7c96ec7 commit e3c508b
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 e3c508b

Please sign in to comment.