[docker-snmpd]: asyncsnmp depends on sonic-utilities so it is possible to import sonic_psu (#1212)
* asyncsnmp depends on sonic-utilities so it is possible to import sonic_psu Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com> * Ignore sonic_utilities test during build
This commit is contained in:
parent
c4f7cd376e
commit
4b2225bca5
@ -7,6 +7,7 @@ COPY [ \
|
||||
"/debs/"]
|
||||
|
||||
# Install Python SwSSSDK (SNMP subagent dependency)
|
||||
COPY python-wheels/sonic_utilities-*-py3-*.whl /python-wheels/
|
||||
COPY python-wheels/swsssdk-*-py3-*.whl /python-wheels/
|
||||
COPY python-wheels/asyncsnmp-*-py3-*.whl /python-wheels/
|
||||
|
||||
|
@ -3,5 +3,6 @@
|
||||
ASYNCSNMP_PY3 = asyncsnmp-2.1.0-py3-none-any.whl
|
||||
$(ASYNCSNMP_PY3)_SRC_PATH = $(SRC_PATH)/sonic-snmpagent
|
||||
$(ASYNCSNMP_PY3)_PYTHON_VERSION = 3
|
||||
$(ASYNCSNMP_PY3)_DEPENDS += $(SWSSSDK_PY3)
|
||||
# Depends on sonic-utilities so it is possible to import sonic_psu
|
||||
$(ASYNCSNMP_PY3)_DEPENDS += $(SWSSSDK_PY3) $(SONIC_UTILS_PY3)
|
||||
SONIC_PYTHON_WHEELS += $(ASYNCSNMP_PY3)
|
||||
|
@ -4,3 +4,11 @@ SONIC_UTILS = python-sonic-utilities_1.1-1_all.deb
|
||||
$(SONIC_UTILS)_SRC_PATH = $(SRC_PATH)/sonic-utilities
|
||||
$(SONIC_UTILS)_WHEEL_DEPENDS = $(SONIC_CONFIG_ENGINE)
|
||||
SONIC_PYTHON_STDEB_DEBS += $(SONIC_UTILS)
|
||||
|
||||
# Build sonic-utilities into python3 wheel, so we can use PSU code
|
||||
# Note: _DEPENDS macro is not defined
|
||||
SONIC_UTILS_PY3 = sonic_utilities-1.1-py3-none-any.whl
|
||||
$(SONIC_UTILS_PY3)_SRC_PATH = $(SRC_PATH)/sonic-utilities
|
||||
$(SONIC_UTILS_PY3)_PYTHON_VERSION = 3
|
||||
$(SONIC_UTILS_PY3)_TEST = n
|
||||
SONIC_PYTHON_WHEELS += $(SONIC_UTILS_PY3)
|
||||
|
2
slave.mk
2
slave.mk
@ -306,7 +306,7 @@ $(addprefix $(PYTHON_WHEELS_PATH)/, $(SONIC_PYTHON_WHEELS)) : $(PYTHON_WHEELS_PA
|
||||
pushd $($*_SRC_PATH) $(LOG)
|
||||
# apply series of patches if exist
|
||||
if [ -f ../$(notdir $($*_SRC_PATH)).patch/series ]; then QUILT_PATCHES=../$(notdir $($*_SRC_PATH)).patch quilt push -a; fi
|
||||
python$($*_PYTHON_VERSION) setup.py test $(LOG)
|
||||
[ "$($*_TEST)" = "n" ] || python$($*_PYTHON_VERSION) setup.py test $(LOG)
|
||||
python$($*_PYTHON_VERSION) setup.py bdist_wheel $(LOG)
|
||||
# clean up
|
||||
if [ -f ../$(notdir $($*_SRC_PATH)).patch/series ]; then quilt pop -a -f; fi
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 0c0a2f02c32a8cafb3020d8248ea829bbc959d4a
|
||||
Subproject commit ea108f3cac773ed8e71110c7da577fde28e9219b
|
Loading…
Reference in New Issue
Block a user