Skip to content

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

Merged
qiluo-msft merged 1 commit intosonic-net:202012from
qiluo-msft:qiluo/pipinstall202012
Oct 30, 2021
Merged

[build] Use pip to install setup.py dependency instead of python setup.py install#9111
qiluo-msft merged 1 commit intosonic-net:202012from
qiluo-msft:qiluo/pipinstall202012

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)

# 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
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