51f896b33e
**- Why I did it** python2 is end of life and SONiC is going to support python3. This PR is going to support: 1. Build pmon daemons with python3 2. Install and run python3 version pmon daemons **- How I did it** 1. Change pmon daemons make files to build bothe python2 and python3 whl 2. Change docker-platform-monitor make files to install both python2 and python3 whl 3. Change pmon docker startup files to start pmon daemons according to the supported platform API version
20 lines
904 B
Makefile
20 lines
904 B
Makefile
# sonic-syseepromd (SONiC Syseeprom gathering daemon) Debian package
|
|
|
|
# SONIC_SYSEEPROMD_PY2 package
|
|
|
|
SONIC_SYSEEPROMD_PY2 = sonic_syseepromd-1.0-py2-none-any.whl
|
|
$(SONIC_SYSEEPROMD_PY2)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-syseepromd
|
|
$(SONIC_SYSEEPROMD_PY2)_DEPENDS = $(SONIC_PY_COMMON_PY2)
|
|
$(SONIC_SYSEEPROMD_PY2)_DEBS_DEPENDS = $(LIBSWSSCOMMON) $(PYTHON_SWSSCOMMON)
|
|
$(SONIC_SYSEEPROMD_PY2)_PYTHON_VERSION = 2
|
|
SONIC_PYTHON_WHEELS += $(SONIC_SYSEEPROMD_PY2)
|
|
|
|
# SONIC_SYSEEPROMD_PY3 package
|
|
|
|
SONIC_SYSEEPROMD_PY3 = sonic_syseepromd-1.0-py3-none-any.whl
|
|
$(SONIC_SYSEEPROMD_PY3)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-syseepromd
|
|
$(SONIC_SYSEEPROMD_PY3)_DEPENDS = $(SONIC_PY_COMMON_PY3) $(SONIC_SYSEEPROMD_PY2)
|
|
$(SONIC_SYSEEPROMD_PY3)_DEBS_DEPENDS = $(LIBSWSSCOMMON) $(PYTHON3_SWSSCOMMON)
|
|
$(SONIC_SYSEEPROMD_PY3)_PYTHON_VERSION = 3
|
|
SONIC_PYTHON_WHEELS += $(SONIC_SYSEEPROMD_PY3)
|