Skip to content

Commit

Permalink
LooseVersion → Version
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Feb 5, 2024
1 parent 1c64798 commit b86ec43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_lock/invoke_conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
import tempfile
import threading

from distutils.version import LooseVersion
from typing import IO, Dict, Iterator, List, Optional, Sequence, Union

from ensureconda.api import determine_micromamba_version, ensureconda
from packaging.version import Version

from conda_lock.models.channel import Channel

Expand Down Expand Up @@ -57,7 +57,7 @@ def determine_conda_executable(
for candidate in _determine_conda_executable(conda_executable, mamba, micromamba):
if candidate is not None:
if is_micromamba(candidate):
if determine_micromamba_version(str(candidate)) < LooseVersion("0.17"):
if determine_micromamba_version(str(candidate)) < Version("0.17"):
mamba_root_prefix()
return candidate
raise RuntimeError("Could not find conda (or compatible) executable")
Expand Down

0 comments on commit b86ec43

Please sign in to comment.