Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using conda_build.conda_interface #69

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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