Skip to content

Commit

Permalink
Fix for conda 4.13.0 Python 2.7 removal (#4482)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard authored May 27, 2022
1 parent 1ed8da0 commit 6369bd7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
9 changes: 5 additions & 4 deletions conda_build/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2081,10 +2081,11 @@ def linked_data_no_multichannels(prefix):
"""
from conda.core.prefix_data import PrefixData
from conda.models.dist import Dist
pd = PrefixData(prefix)
from conda.common.compat import itervalues
return {Dist.from_string(prefix_record.fn, channel_override=prefix_record.channel.name):
prefix_record for prefix_record in itervalues(pd._prefix_records)}

return {
Dist.from_string(prec.fn, channel_override=prec.channel.name): prec
for prec in PrefixData(prefix)._prefix_records.values()
}


def shutil_move_more_retrying(src, dest, debug_name):
Expand Down
19 changes: 19 additions & 0 deletions news/4482-bugfix-legacy-python-removal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* <news item>

### Deprecations

* Remove Python 2.7 imports removed in conda 4.13.0. (#4482)

### Docs

* <news item>

### Other

* <news item>

0 comments on commit 6369bd7

Please sign in to comment.