Skip to content

Conversation

@ivanimanishi
Copy link
Member

Generally describe what this PR will do, and why it is needed.

  • List specific new features and changes to project components

Related Issues

  • List any Issues this PR addresses or solves

Dependencies

  • List any other unmerged PRs that this PR depends on

Breaking Changes

  • List any breaking API/ABI changes

Checklist

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have tested my change(s) in the test suite, and added new test cases where necessary.
  • My code follows the Cortex project's prevailing coding style and conventions.

yannci and others added 7 commits November 30, 2022 13:27
In Python 3 list comprehensions were changed to create their own local
scope. If we pass in different objects for the `globals` and
`locals` to the `exec` function this leads to `NameErrors` in the list
comprehension. SCons passes in two different dictionaries when calling
`exec` on the the options files. To circumvent this issue, we rewrite
the list comprehension to a loop.

For reference:
https://stackoverflow.com/questions/45132645/list-comprehension-in-exec-with-empty-locals-nameerror
This is to make it easier to install for specific versions that may not
yet be active
ie options: Fix Python 3 `exec` issue with list comprehensions
config/ie/buildAll : Allow for version overrides from command arguments
@ivanimanishi ivanimanishi merged commit 4c63bfa into main Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants