51c77b179f
python2 is end of life and SONiC is going to support python3. This PR is going to support: 1. Mellanox SONiC platform API python3 support 2. Install both python2 and python3 verson of Mellanox SONiC platform API or pmon and host side
20 lines
995 B
Makefile
20 lines
995 B
Makefile
# SONIC_PLATFORM_API_PY2 package
|
|
|
|
SONIC_PLATFORM_API_PY2 = mlnx_platform_api-1.0-py2-none-any.whl
|
|
$(SONIC_PLATFORM_API_PY2)_SRC_PATH = $(PLATFORM_PATH)/mlnx-platform-api
|
|
$(SONIC_PLATFORM_API_PY2)_PYTHON_VERSION = 2
|
|
$(SONIC_PLATFORM_API_PY2)_DEPENDS = $(SONIC_PY_COMMON_PY2) $(SONIC_PLATFORM_COMMON_PY2) $(SONIC_CONFIG_ENGINE_PY2)
|
|
SONIC_PYTHON_WHEELS += $(SONIC_PLATFORM_API_PY2)
|
|
|
|
export mlnx_platform_api_py2_wheel_path="$(addprefix $(PYTHON_WHEELS_PATH)/,$(SONIC_PLATFORM_API_PY2))"
|
|
|
|
# SONIC_PLATFORM_API_PY3 package
|
|
|
|
SONIC_PLATFORM_API_PY3 = mlnx_platform_api-1.0-py3-none-any.whl
|
|
$(SONIC_PLATFORM_API_PY3)_SRC_PATH = $(PLATFORM_PATH)/mlnx-platform-api
|
|
$(SONIC_PLATFORM_API_PY3)_PYTHON_VERSION = 3
|
|
$(SONIC_PLATFORM_API_PY3)_DEPENDS = $(SONIC_PY_COMMON_PY3) $(SONIC_PLATFORM_COMMON_PY3) $(SONIC_CONFIG_ENGINE_PY3) $(SONIC_PLATFORM_API_PY2)
|
|
SONIC_PYTHON_WHEELS += $(SONIC_PLATFORM_API_PY3)
|
|
|
|
export mlnx_platform_api_py3_wheel_path="$(addprefix $(PYTHON_WHEELS_PATH)/,$(SONIC_PLATFORM_API_PY3))"
|