d26a4aff9a
- Why I did it SONiC design requires sonic_platform package to be installed in SONiC host environment, not only in docker containers. - How I did it For now, sonic_platform python wheel package, that is used by pmon, is provided via device-specific platform modules deb packages that unpacks the wheel package file into specific device's directory on lazy-install. The PR makes deb packages' postinst script also install these unpacked wheel packages to host. Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
11 lines
387 B
Bash
11 lines
387 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
PLATFORM_NAME=x86_64-accton_wedge100bf_65x-r0
|
|
SONIC_PLATFORM_WHEEL_PY2="/usr/share/sonic/device/${PLATFORM_NAME}/sonic_platform-1.0-py2-none-any.whl"
|
|
python2 -m pip install ${SONIC_PLATFORM_WHEEL_PY2}
|
|
SONIC_PLATFORM_WHEEL_PY3="/usr/share/sonic/device/${PLATFORM_NAME}/sonic_platform-1.0-py3-none-any.whl"
|
|
python3 -m pip install ${SONIC_PLATFORM_WHEEL_PY3}
|
|
|
|
#DEBHELPER#
|