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

[sonic-platform-common] Install Python 3 package in host OS and PMon container #5461

Merged
merged 5 commits into from
Sep 29, 2020

Conversation

vboykox
Copy link
Member

@vboykox vboykox commented Sep 24, 2020

Signed-off-by: Volodymyr Boyko [email protected]

- Why I did it
To include python 3 sonic-platform-common into SONiC image

- How to verify it
ls /usr/local/lib/python3.7/

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

  • 201811
  • 201911
  • 202006

@vboykox
Copy link
Member Author

vboykox commented Sep 25, 2020

@jleveque

@jleveque
Copy link
Contributor

@vboykox: Thanks for opening this PR! Is it ready for merge? I saw "WIP" in the title, so I wanted to wait for an update from you.

@vboykox vboykox changed the title WIP: [sonic-platform-common] Add sonic-platform-common Python 3 package to fs [sonic-platform-common] Add sonic-platform-common Python 3 package to fs Sep 25, 2020
@vboykox
Copy link
Member Author

vboykox commented Sep 25, 2020

@jleveque yes, the PR is ready for merge

@jleveque
Copy link
Contributor

Retest broadcom please

@jleveque
Copy link
Contributor

Retest vsimage please

@jleveque
Copy link
Contributor

@vboykox: The Python 3 sonic-platform-common package will also need to be installed in the PMon container. Do you intend to do this in a separate PR?

jleveque
jleveque previously approved these changes Sep 26, 2020
@jleveque jleveque changed the title [sonic-platform-common] Add sonic-platform-common Python 3 package to fs [sonic-platform-common] Install Python 3 package in host OS and PMon container Sep 26, 2020
@vboykox
Copy link
Member Author

vboykox commented Sep 26, 2020

@vboykox: The Python 3 sonic-platform-common package will also need to be installed in the PMon container. Do you intend to do this in a separate PR?

Thanks for pointing that out

… py3 packages

Use PEP-425 Python tag to differentiate between package python version

Signed-off-by: Volodymyr Boyko <[email protected]>
@lguohan
Copy link
Collaborator

lguohan commented Sep 26, 2020

retest baseimage please

@jleveque
Copy link
Contributor

jleveque commented Sep 26, 2020

@vboykox: The Docker container install of the Python 3 wheel is failing. The issue is it's trying to install a Python 3 wheel using Python 2 pip. This is because the Dockerfile is using a macro from dockers/dockerfile-macros.j2, but the macro needs to be updated to be smarter. In the meantime, I suggest you update this section to work like the change I made here.

I can work on updating the macro in the future.

@vboykox vboykox changed the title [sonic-platform-common] Install Python 3 package in host OS and PMon container WIP: [sonic-platform-common] Install Python 3 package in host OS and PMon container Sep 26, 2020
@vboykox vboykox force-pushed the add_sonic_platform_common_py3_to_fs branch from b473da8 to 3106a78 Compare September 26, 2020 10:35
@vboykox vboykox force-pushed the add_sonic_platform_common_py3_to_fs branch from 031ebd2 to 2427b81 Compare September 26, 2020 19:55
@vboykox
Copy link
Member Author

vboykox commented Sep 27, 2020

retest mellanox please

@vboykox
Copy link
Member Author

vboykox commented Sep 27, 2020

retest broadcom please

@vboykox vboykox changed the title WIP: [sonic-platform-common] Install Python 3 package in host OS and PMon container [sonic-platform-common] Install Python 3 package in host OS and PMon container Sep 28, 2020
@lguohan lguohan merged commit d71a4ef into sonic-net:master Sep 29, 2020
@vboykox vboykox deleted the add_sonic_platform_common_py3_to_fs branch September 30, 2020 02:33
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
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