3987cbd80a
We are moving toward building all Python packages for SONiC as wheel packages rather than Debian packages. This will also allow us to more easily transition to Python 3. Python files are now packaged in "sonic-utilities" Pyhton wheel. Data files are now packaged in "sonic-utilities-data" Debian package. **- How I did it** - Build and install sonic-utilities as a Python package - Remove explicit installation of wheel dependencies, as these will now get installed implicitly by pip when installing sonic-utilities as a wheel - Build and install new sonic-utilities-data package to install data files required by sonic-utilities applications - Update all references to sonic-utilities scripts/entrypoints to either reference the new /usr/local/bin/ location or remove absolute path entirely where applicable Submodule updates: * src/sonic-utilities aa27dd9...2244d7b (5): > Support building sonic-utilities as a Python wheel package instead of a Debian package (#1122) > [consutil] Display remote device name in show command (#1120) > [vrf] fix check state_db error when vrf moving (#1119) > [consutil] Fix issue where the ConfigDBConnector's reference is missing (#1117) > Update to make config load/reload backward compatible. (#1115) * src/sonic-ztp dd025bc...911d622 (1): > Update paths to reflect new sonic-utilities install location, /usr/local/bin/ (#19)
24 lines
1.1 KiB
Makefile
24 lines
1.1 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) \
|
|
$(SONIC_YANG_MGMT_PY) \
|
|
$(SONIC_YANG_MODELS_PY3)
|
|
$(SONIC_UTILITIES_PY2)_DEBS_DEPENDS = $(LIBYANG) \
|
|
$(LIBYANG_CPP) \
|
|
$(LIBYANG_PY2) \
|
|
$(LIBYANG_PY3)
|
|
SONIC_PYTHON_WHEELS += $(SONIC_UTILITIES_PY2)
|