Skip to content

Commit

Permalink
Revert MatchSpec usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed May 22, 2024
1 parent d330f4d commit 45232e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conda_build/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,10 @@ def _check_circular_dependencies(
for _, other_metadata in render_order[idx + 1 :]:
other_name = other_metadata.name()
if any(
name == MatchSpec(dep).name
name == dep.split(" ")[0]
for dep in _get_all_dependencies(other_metadata, envs=envs)
) and any(
other_name == MatchSpec(dep).name
other_name == dep.split(" ")[0]
for dep in _get_all_dependencies(metadata, envs=envs)
):
pairs.append((name, other_name))
Expand Down Expand Up @@ -994,7 +994,7 @@ def _toposort_outputs(output_tuples: list[OutputTuple]) -> list[OutputTuple]:
name_to_dependencies.setdefault(name, set()).update(
dependency_name
for dependency in dependencies
if (dependency_name := MatchSpec(dependency).name) in conda_outputs
if (dependency_name := dependency.split(" ")[0]) in conda_outputs
)

# preserve all of the variants
Expand Down

0 comments on commit 45232e1

Please sign in to comment.