56fa3cf494
sonic-bgpcfgd build fails in the absence of Python 2, as it attempts to explicitly call sonic-cfggen using `/usr/bin/python2.7`. Also, it attempts to call sonic-cfggen using a local, relative path. Since the sonic-config-engine package is not installed, neither are its dependencies. Now, we configure the Python 3 sonic-config-engine as a dependency of sonic-bgpcfgd, which ensures the Python 3 sonic-config-engine package and its dependencies are installed before sonic-bgpcfgd is built/tested.
14 lines
550 B
Makefile
14 lines
550 B
Makefile
# sonic-bgpcfgd package
|
|
|
|
SONIC_BGPCFGD = sonic_bgpcfgd-1.0-py3-none-any.whl
|
|
$(SONIC_BGPCFGD)_SRC_PATH = $(SRC_PATH)/sonic-bgpcfgd
|
|
# These dependencies are only needed because they are dependencies
|
|
# of sonic-config-engine and bgpcfgd explicitly calls sonic-cfggen
|
|
# as part of its unit tests.
|
|
# TODO: Refactor unit tests so that these dependencies are not needed
|
|
|
|
$(SONIC_BGPCFGD)_DEPENDS += $(SONIC_CONFIG_ENGINE_PY3)
|
|
$(SONIC_BGPCFGD)_DEBS_DEPENDS += $(PYTHON3_SWSSCOMMON)
|
|
$(SONIC_BGPCFGD)_PYTHON_VERSION = 3
|
|
SONIC_PYTHON_WHEELS += $(SONIC_BGPCFGD)
|