a704ded668
Add Python 3 sonic-yang-mgmt package as a dependency in sonic-utilities makefile. Recently updated the sonic-utilities Jenkins build environment [here](https://github.com/Azure/sonic-build-tools/pull/185) to begin running tests on the Python 3 version of the sonic-utilities package. However, the build is failing because it attempts to copy the Python 3 sonic-yang-mgmt package from the artifacts of the latest VS build, but the package does not exist because there are no targets which specify it as a dependency. This PR will ensure the Python 3 package is built during the image build process.
25 lines
1.2 KiB
Makefile
25 lines
1.2 KiB
Makefile
# sonic utilities package
|
|
#
|
|
# NOTE: sonic-config-engine is a build-time dependency of sonic-utilities
|
|
# due to unit tests which are run during the build. However,
|
|
# sonic-platform-common and swsssdk are runtime dependencies, and should be
|
|
# added here also. However, the current build system assumes all runtime
|
|
# dependencies are .deb packages.
|
|
#
|
|
|
|
SONIC_UTILITIES_PY2 = sonic_utilities-1.2-py2-none-any.whl
|
|
$(SONIC_UTILITIES_PY2)_SRC_PATH = $(SRC_PATH)/sonic-utilities
|
|
$(SONIC_UTILITIES_PY2)_PYTHON_VERSION = 2
|
|
$(SONIC_UTILITIES_PY2)_DEPENDS += $(SONIC_PY_COMMON_PY2) \
|
|
$(SONIC_PY_COMMON_PY3) \
|
|
$(SWSSSDK_PY2) \
|
|
$(SONIC_CONFIG_ENGINE_PY2) \
|
|
$(SONIC_YANG_MGMT_PY2) \
|
|
$(SONIC_YANG_MGMT_PY3) \
|
|
$(SONIC_YANG_MODELS_PY3)
|
|
$(SONIC_UTILITIES_PY2)_DEBS_DEPENDS = $(LIBYANG) \
|
|
$(LIBYANG_CPP) \
|
|
$(LIBYANG_PY2) \
|
|
$(LIBYANG_PY3)
|
|
SONIC_PYTHON_WHEELS += $(SONIC_UTILITIES_PY2)
|