Skip to content

Commit 7c79b26

Browse files
authored
[build]: fix bug for compile sonic-platform-common caused by enable pytest (#7431)
Co-authored-by: Shi Lei <shil@centecnetworks.com>
1 parent 701afa2 commit 7c79b26

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rules/sonic-platform-common.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ SONIC_PLATFORM_COMMON_PY2 = sonic_platform_common-1.0-py2-none-any.whl
44
$(SONIC_PLATFORM_COMMON_PY2)_SRC_PATH = $(SRC_PATH)/sonic-platform-common
55
$(SONIC_PLATFORM_COMMON_PY2)_PYTHON_VERSION = 2
66
$(SONIC_PLATFORM_COMMON_PY2)_DEPENDS += $(SONIC_PY_COMMON_PY2) $(SONIC_CONFIG_ENGINE_PY2)
7+
$(SONIC_PLATFORM_COMMON_PY2)_DEBS_DEPENDS += $(PYTHON_SWSSCOMMON)
78
SONIC_PYTHON_WHEELS += $(SONIC_PLATFORM_COMMON_PY2)
89

910
# Als build sonic-platform-common into python3 wheel, so we can use PSU code in SNMP docker
1011
SONIC_PLATFORM_COMMON_PY3 = sonic_platform_common-1.0-py3-none-any.whl
1112
$(SONIC_PLATFORM_COMMON_PY3)_SRC_PATH = $(SRC_PATH)/sonic-platform-common
1213
$(SONIC_PLATFORM_COMMON_PY3)_PYTHON_VERSION = 3
1314
$(SONIC_PLATFORM_COMMON_PY3)_DEPENDS += $(SONIC_PY_COMMON_PY3) $(SONIC_CONFIG_ENGINE_PY3)
15+
$(SONIC_PLATFORM_COMMON_PY3)_DEBS_DEPENDS += $(PYTHON3_SWSSCOMMON)
1416
# Synthetic dependency just to avoid race condition
1517
$(SONIC_PLATFORM_COMMON_PY3)_DEPENDS += $(SONIC_PLATFORM_COMMON_PY2)
1618
SONIC_PYTHON_WHEELS += $(SONIC_PLATFORM_COMMON_PY3)

0 commit comments

Comments
 (0)