mirror of
https://github.com/langchain-ai/staged-recipes.git
synced 2026-07-01 20:54:22 -04:00
fix: use new Index class due to deprecations in conda 25.9.0 (#31155)
* fix: use new Index class due to deprecations in conda 25.9.0 * prod: update conda version in environment.yaml to 25.9.0 * fix: update conda version requirement in pixi.toml to 25.9.0
This commit is contained in:
committed by
GitHub
parent
a73c17582f
commit
994b9e6089
@@ -1,7 +1,7 @@
|
||||
from shutil import rmtree
|
||||
import tempfile
|
||||
import conda.base.context
|
||||
import conda.core.index
|
||||
import conda.core
|
||||
import conda.resolve
|
||||
import conda_build.api
|
||||
import conda_index.api
|
||||
@@ -234,7 +234,7 @@ def build_folders(recipes_dir, folders, arch, channel_urls):
|
||||
index_path = os.path.join(sys.exec_prefix, "conda-bld")
|
||||
os.makedirs(index_path, exist_ok=True)
|
||||
conda_index.api.update_index(index_path)
|
||||
index = conda.core.index.get_index(channel_urls=channel_urls)
|
||||
index = conda.core.Index(channel_urls=channel_urls)
|
||||
conda_resolve = conda.resolve.Resolve(index)
|
||||
|
||||
config = get_config(arch, channel_urls)
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ channels:
|
||||
- nodefaults
|
||||
dependencies:
|
||||
- python 3.12.*
|
||||
- conda >=24.9.2
|
||||
- conda >=25.9.0
|
||||
- conda-libmamba-solver >=24.9.0
|
||||
- conda-build >=25.3.1
|
||||
- conda-index >=0.3.0
|
||||
|
||||
Reference in New Issue
Block a user