From 884d82343e053842961b81599bd99048fa1e89f2 Mon Sep 17 00:00:00 2001 From: Marcel Bargull Date: Sat, 16 Mar 2024 18:08:58 +0100 Subject: [PATCH] Stop using conda_build.conda_interface conda_build.conda_interface is being deprecated. refs: - https://github.com/conda/conda-build/pull/5222 Signed-off-by: Marcel Bargull --- conda_forge_feedstock_check_solvable/mamba_solver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conda_forge_feedstock_check_solvable/mamba_solver.py b/conda_forge_feedstock_check_solvable/mamba_solver.py index cb9a1b9..b7f1057 100644 --- a/conda_forge_feedstock_check_solvable/mamba_solver.py +++ b/conda_forge_feedstock_check_solvable/mamba_solver.py @@ -31,6 +31,7 @@ import cachetools.func import wurlitzer +from conda.base.context import context from conda.models.match_spec import MatchSpec import conda_build.api import conda_package_handling.api @@ -38,7 +39,6 @@ import libmambapy as api from mamba.utils import load_channels -from conda_build.conda_interface import pkgs_dirs from conda_build.utils import download_channeldata import requests @@ -48,6 +48,8 @@ get_artifact_info_as_json, ) +pkgs_dirs = context.pkgs_dirs + PACKAGE_CACHE = api.MultiPackageCache(pkgs_dirs)