Skip to content

Commit c55cf8b

Browse files
specify min conda version via constant
1 parent 72c8e64 commit c55cf8b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

snakemake/deployment/conda.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
from snakemake_interface_common.utils import lazy_property
4444

4545

46+
MIN_CONDA_VER = "24.7.1"
47+
48+
4649
class CondaCleanupMode(Enum):
4750
tarballs = "tarballs"
4851
cache = "cache"
@@ -758,9 +761,9 @@ def _check_version(self):
758761
)
759762
else:
760763
version = version_matches[0]
761-
if Version(version) < Version("24.9.1"):
764+
if Version(version) < Version(MIN_CONDA_VER):
762765
raise CreateCondaEnvironmentException(
763-
f"Conda must be version 24.9.1 or later, found version {version}. "
766+
f"Conda must be version {MIN_CONDA_VER} or later, found version {version}. "
764767
"Please update conda to the latest version. "
765768
"Note that you can also install conda into the snakemake environment "
766769
"without modifying your main conda installation."

0 commit comments

Comments
 (0)