From d5c1b89a097b18c656301532712acba1eef70efe Mon Sep 17 00:00:00 2001 From: Sophia Castellarin Date: Mon, 1 Jul 2019 10:26:15 -0500 Subject: [PATCH] Add dep on libgcc mutex package https://github.com/conda/conda/issues/8844#issuecomment-506992734 --- free.py | 4 ++++ main.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/free.py b/free.py index f0eaf1b..c3a84d4 100644 --- a/free.py +++ b/free.py @@ -204,6 +204,10 @@ def _patch_repodata(repodata, subdir): xtractd = record["track_features"] = _extract_track_feature(record, feat) instructions["packages"][fn]["track_features"] = xtractd + # Add mutex package for libgcc-ng + if record['name'] == 'libgcc': + record['depends'].append('_libgcc_mutex * free') + return instructions diff --git a/main.py b/main.py index c6ac0ca..16720d1 100644 --- a/main.py +++ b/main.py @@ -481,6 +481,10 @@ def _patch_repodata(repodata, subdir): record["depends"].append("blas * openblas") instructions["packages"][fn]["depends"] = record["depends"] + # Add mutex package for libgcc-ng + if record['name'] == 'libgcc-ng': + record['depends'].append('_libgcc_mutex * main') + # some of these got hard-coded to overly restrictive values if record['name'] in ('scikit-learn', 'pytorch'): new_deps = []