Skip to content

Commit

Permalink
Adds exclamation mark to contraint check
Browse files Browse the repository at this point in the history
  • Loading branch information
edgararuiz committed Jan 7, 2025
1 parent 5577d58 commit 4b24553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/py_require.R
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ get_or_create_venv <- function(requirements = NULL, python_version = "3.10", exc

if (length(python_version)) {
if (length(python_version) != 1) {
has_const <- substr(python_version, 1, 1) %in% c(">", "<", "=")
has_const <- substr(python_version, 1, 1) %in% c(">", "<", "=", "!")
python_version[!has_const] <- paste0("==", python_version[!has_const])
python_version <- paste0(python_version, collapse = ",")
}
Expand Down

0 comments on commit 4b24553

Please sign in to comment.