Skip to content

Commit

Permalink
Merge pull request #69 from mbargull/address-conda-build-deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr authored Mar 16, 2024
2 parents 0154c60 + 4d57150 commit dc76cf9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions build_cdt_recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import click
from ruamel.yaml import YAML

from conda_build.conda_interface import get_index
from conda.core.index import get_index

from cdt_config import (
LEGACY_CDT_PATH,
Expand Down Expand Up @@ -95,15 +95,14 @@ def _get_recipe_attrs(recipe, channel_index):
def _build_cdt_meta(recipes, dist_arch_slug):
print("getting conda-forge/label/main channel index...", flush=True)
channel_url = '/'.join(['conda-forge', 'label', 'main'])
dist_index = get_index(
[channel_url],
prepend=False,
use_cache=False
)
channel_index = {
c.to_filename(): a
for c, a in dist_index.items()
if a['subdir'] == 'noarch'
prec.fn: prec
for prec in get_index(
[channel_url],
prepend=False,
use_cache=False,
)
if prec.subdir == 'noarch'
}

cdt_meta = {}
Expand Down

0 comments on commit dc76cf9

Please sign in to comment.