Skip to content

fix compatibility of SuiteSparse easyblock with Python 3#1796

Merged
wpoely86 merged 1 commit intoeasybuilders:developfrom
boegel:fix_suitesparse_py3
Aug 31, 2019
Merged

fix compatibility of SuiteSparse easyblock with Python 3#1796
wpoely86 merged 1 commit intoeasybuilders:developfrom
boegel:fix_suitesparse_py3

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Aug 30, 2019

We need to force using a copy of cfgvars.items() when iterating over it, because of the cfgvars.pop being used in the for loop...

This is only a problem with Python 3, where .items() returns an iterator, while in Python 2 it's already a cope of keys & values in the dictionary (so changing the dictionary while iterating over it is not a problem there).

(fixes #1784)

@boegel boegel added bug fix python3 Python 3 compatibility labels Aug 30, 2019
@boegel boegel added this to the 4.0.0 milestone Aug 30, 2019
@wpoely86 wpoely86 merged commit 9f7f769 into easybuilders:develop Aug 31, 2019
@boegel boegel deleted the fix_suitesparse_py3 branch September 2, 2019 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix python3 Python 3 compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants