Skip to content

Commit

Permalink
MAINT: Sanity check for libmambapy
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Nov 23, 2024
1 parent 9864bac commit 017daf3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions asv/plugins/mamba.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@
except ImportError:
from yaml import Loader

import libmambapy

from ._mamba_helpers import MambaSolver
from .. import environment, util
from ..console import log

WIN = os.name == "nt"

from importlib_metadata import version as get_version
import libmambapy

if int(get_version(libmambapy).split(".")[0]) <= 2:
raise environment.EnvironmentUnavailable(
f"libmambapy must be less than 2.0, but got {get_version('libmambapy')}"
)


from ._mamba_helpers import MambaSolver

# Like Conda, Mamba also needs to be serialized
util.new_multiprocessing_lock("mamba_lock")
Expand Down

0 comments on commit 017daf3

Please sign in to comment.