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

[build] Use pip to install setup.py dependency instead of python setup.py install #9111

Merged
merged 1 commit into from
Oct 30, 2021

Conversation

qiluo-msft
Copy link
Collaborator

Why I did it

Backport #8997 to 202012 branch.

How I did it

How to verify it

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

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

@@ -620,6 +620,8 @@ $(addprefix $(PYTHON_WHEELS_PATH)/, $(SONIC_PYTHON_WHEELS)) : $(PYTHON_WHEELS_PA
pushd $($*_SRC_PATH) $(LOG_SIMPLE)
# apply series of patches if exist
if [ -f ../$(notdir $($*_SRC_PATH)).patch/series ]; then QUILT_PATCHES=../$(notdir $($*_SRC_PATH)).patch quilt push -a; fi
# Use pip instead of later setup.py to install dependencies into user home, but uninstall self
pip$($*_PYTHON_VERSION) install . && pip$($*_PYTHON_VERSION) uninstall --yes `python setup.py --name`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python setup.py --name should be python$($*_PYTHON_VERSION) setup.py --name

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! It is working now, and I will fix later in anther PR.

@qiluo-msft qiluo-msft merged commit de38cd7 into sonic-net:202012 Oct 30, 2021
@qiluo-msft qiluo-msft deleted the qiluo/pipinstall202012 branch October 30, 2021 04:14
guxianghong pushed a commit to CentecNetworks/sonic-buildimage that referenced this pull request May 21, 2022
liuyuefengcn added a commit to liuyuefengcn/sonic-net-buildimage that referenced this pull request Nov 14, 2023
SHA-1: 798910a
* [build] Use pip to install setup.py dependency instead of `python setup.py install` (sonic-net#9111)
#### Why I did it
Backport sonic-net#8997 to 202012 branch.
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