Skip to content

Commit

Permalink
Add dep on libgcc mutex package
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophia Castellarin committed Jul 1, 2019
1 parent 3e53f36 commit c6b511e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions free.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ def _patch_repodata(repodata, subdir):
xtractd = record["track_features"] = _extract_track_feature(record, feat)
instructions["packages"][fn]["track_features"] = xtractd

if any(dep == 'libgcc' for dep in record['depends']):
record['depends'].append('_libgcc_mutex * free')

return instructions


Expand Down
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ def _patch_repodata(repodata, subdir):
record["depends"].append("blas * openblas")
instructions["packages"][fn]["depends"] = record["depends"]

if any(dep == 'libgcc-ng' for dep in record['depends']):
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 = []
Expand Down

0 comments on commit c6b511e

Please sign in to comment.