Skip to content

Commit

Permalink
Remove +<tag> suffix from Python version in virtualenv_starter()
Browse files Browse the repository at this point in the history
closes #1704
  • Loading branch information
t-kalinowski committed Dec 20, 2024
1 parent 61f0fa4 commit 5809ac6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# reticulate (development version)

- Fixed an issue where `virtualenv_starter()` would not discover a
custom built Python (#1704).

# reticulate 1.40.0

- The S3 classes for some (rarely encountered) Python objects have changed.
Expand Down
1 change: 1 addition & 0 deletions R/virtualenv.R
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ virtualenv_starter <- function(version = NULL, all = FALSE) {
length(v) != 1L ||
!startsWith(v, "Python "))
return(NA_character_)
v <- sub("\\+.*$", "", v)
substr(v, 8L, 999L)
}, error = function(e) NA_character_), ""), strict = FALSE)
df <- data.frame(version = v, path = p,
Expand Down

0 comments on commit 5809ac6

Please sign in to comment.