Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sonic-cfggen contextlib err #7996

Merged
merged 1 commit into from
Jun 29, 2021
Merged

Conversation

TACappleman
Copy link
Contributor

Why I did it

A recent version of contextlib2 (https://pypi.org/project/contextlib2/21.6.0/#history) has broken Python2 compatibility, so the version picked up by netaddr when using Python2 must be specified, or else builds fail

How I did it

Changed where netaddr is downloaded to also download the previous version of contextlib2

How to verify it

Build targets e.g. docker-sonic-mgmt-framework.gz

Which release branch to backport (provide reason below if selected)

  • [ X] 202012
  • May also need variations applied to earlier branches
    Reason is that an external dependency has changed, which needs to be fixed on any branch that uses that dependency

Description for the changelog

Specify contextlib2 version for use with Python2

A picture of a cute animal (not mandatory but encouraged)

@TACappleman TACappleman requested a review from lguohan as a code owner June 28, 2021 14:12
@lguohan lguohan merged commit 101b1fa into sonic-net:master Jun 29, 2021
lguohan pushed a commit that referenced this pull request Jun 29, 2021
A recent version of contextlib2 (https://pypi.org/project/contextlib2/21.6.0/#history) has broken Python2 compatibility,
so the version picked up by netaddr when using Python2 must be specified, or else builds fail

Co-authored-by: Tom Zhu <[email protected]>
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
A recent version of contextlib2 (https://pypi.org/project/contextlib2/21.6.0/#history) has broken Python2 compatibility, so the version picked up by netaddr when using Python2 must be specified, or else builds fail

Co-authored-by: Tom Zhu <[email protected]>
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants