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 d5c1b89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions free.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit d5c1b89

Please sign in to comment.