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

[python-click] No longer build our own package, let pip/setuptools install vanilla #5549

Merged
merged 12 commits into from
Oct 14, 2020
Merged

[python-click] No longer build our own package, let pip/setuptools install vanilla #5549

merged 12 commits into from
Oct 14, 2020

Conversation

jleveque
Copy link
Contributor

@jleveque jleveque commented Oct 6, 2020

- Why I did it
We were building our own python-click package because we needed features/bug fixes available as of version 7.0.0, but the most recent version available from Debian was in the 6.x range.

"Click" is needed for building/testing and installing sonic-utilities. Now that we are building sonic-utilities as a wheel, with Click specified as a dependency in the setup.py file, setuptools will install a more recent version of Click in the sonic-slave-buster container when building the package, and pip will install a more recent version of Click in the host OS of SONiC when installing the sonic-utilities package. Also, we don't need to worry about installing the Python 2 or 3 version of the package, as the proper one will be installed as necessary.

- How I did it
Remove makefiles and related files for building python-click package from source, no longer install package in host OS or slave containers.

Also clean up the installation of some other Python dependencies which should now implicitly get installed by setuptools at build time and pip at install time.

- How to verify it

Build and install an image. Ensure sonic-utilities package builds and installs OK and that the SONiC CLI works properly. You can also verify via pip list that 'click' is installed.

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

  • 201811
  • 201911
  • 202006

@jleveque jleveque self-assigned this Oct 6, 2020
@jleveque
Copy link
Contributor Author

jleveque commented Oct 7, 2020

Check builds are failing, as this PR depends on sonic-net/sonic-utilities#1151 due the change in single-quotes vs. double-quotes in Click error messages.

@jleveque
Copy link
Contributor Author

Retest vs please

@jleveque
Copy link
Contributor Author

Retest baseimage please

@jleveque jleveque marked this pull request as ready for review October 14, 2020 03:30
@jleveque jleveque requested a review from lguohan October 14, 2020 03:30
@jleveque jleveque merged commit 88c1d66 into sonic-net:master Oct 14, 2020
@jleveque jleveque deleted the vanilla_click branch October 14, 2020 17:16
lguohan pushed a commit that referenced this pull request Feb 11, 2021
We stopped building our own custom python-click package via #5549. This target should have been removed at that time but was missed.
daall pushed a commit that referenced this pull request Feb 16, 2021
We stopped building our own custom python-click package via #5549. This target should have been removed at that time but was missed.
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
…stall vanilla (sonic-net#5549)

We were building our own python-click package because we needed features/bug fixes available as of version 7.0.0, but the most recent version available from Debian was in the 6.x range.

"Click" is needed for building/testing and installing sonic-utilities. Now that we are building sonic-utilities as a wheel, with Click specified as a dependency in the setup.py file, setuptools will install a more recent version of Click in the sonic-slave-buster container when building the package, and pip will install a more recent version of Click in the host OS of SONiC when installing the sonic-utilities package. Also, we don't need to worry about installing the Python 2 or 3 version of the package, as the proper one will be installed as necessary.
@xumia
Copy link
Collaborator

xumia commented Jul 13, 2022

The python3-click=7.1.2-1 in bullseye and python3-click=7.0-1 in buster are supported, do we still need it?

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.

3 participants