Skip to content

Commit

Permalink
fixup! Replace HashableDict with frozendict.deepfreeze
Browse files Browse the repository at this point in the history
  • Loading branch information
freundTech committed Aug 1, 2024
1 parent 20dde54 commit d24b6d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ci_support/compute_build_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import functools
from functools import lru_cache

from frozendict import frozendict
from frozendict import frozendict, deepfreeze
import networkx as nx
from conda.models.match_spec import MatchSpec
from conda.models.records import PackageRecord
Expand Down Expand Up @@ -345,7 +345,7 @@ def collapse_subpackage_nodes(graph):
if master_meta.name() == meta.name():
master = True
group = node_groups.get(meta_path, {})
subgroup = group.get(frozendict.deepfreeze(meta.config.variant), {})
subgroup = group.get(deepfreeze(meta.config.variant), {})
if master:
if 'master' in subgroup:
raise ValueError("tried to set more than one node in a group as master")
Expand All @@ -354,7 +354,7 @@ def collapse_subpackage_nodes(graph):
sps = subgroup.get('subpackages', [])
sps.append(node)
subgroup['subpackages'] = sps
group[frozendict.deepfreeze(meta.config.variant)] = subgroup
group[deepfreeze(meta.config.variant)] = subgroup
node_groups[meta_path] = group

for recipe_path, group in node_groups.items():
Expand Down

0 comments on commit d24b6d8

Please sign in to comment.