-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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-psud] Depend on sonic-platform-common #7182
Conversation
@jleveque is the submodule PR marked to be for 202012? |
@@ -13,7 +13,7 @@ SONIC_PYTHON_WHEELS += $(SONIC_PSUD_PY2) | |||
|
|||
SONIC_PSUD_PY3 = sonic_psud-1.0-py3-none-any.whl | |||
$(SONIC_PSUD_PY3)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-psud | |||
$(SONIC_PSUD_PY3)_DEPENDS = $(SONIC_PY_COMMON_PY3) $(SONIC_PSUD_PY2) | |||
$(SONIC_PSUD_PY3)_DEPENDS = $(SONIC_PY_COMMON_PY3) $(SONIC_PLATFORM_COMMON_PY3) $(SONIC_PSUD_PY2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why a PY3 depends on PY2? #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To prevent building the Python 2 and Python 3 packages simultaneously, which can cause build issues.
@@ -4,7 +4,7 @@ | |||
|
|||
SONIC_PSUD_PY2 = sonic_psud-1.0-py2-none-any.whl | |||
$(SONIC_PSUD_PY2)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-psud | |||
$(SONIC_PSUD_PY2)_DEPENDS = $(SONIC_PY_COMMON_PY2) | |||
$(SONIC_PSUD_PY2)_DEPENDS = $(SONIC_PY_COMMON_PY2) $(SONIC_PLATFORM_COMMON_PY2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we still have PY2? #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because some vendors have not yet ported their platform APIs to Python 3. :( We are allowing them until the next release to do so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM
Unit tests for psud depend on sonic-platform-common as of sonic-net/sonic-platform-daemons#154
Unit tests for psud depend on sonic-platform-common as of sonic-net/sonic-platform-daemons#154
Unit tests for psud depend on sonic-platform-common as of sonic-net/sonic-platform-daemons#154
Why I did it
Unit tests for psud depend on sonic-platform-common as of sonic-net/sonic-platform-daemons#154
How I did it
Add dependency in sonic-thermalctld.mk makefile.
How to verify it
Ensure build passes once sonic-net/sonic-platform-daemons#154 is included in a submodule update.
Which release branch to backport (provide reason below if selected)