Update osmclient installation during full_install to patch pyangbind 46/13746/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 26 Jul 2023 08:44:31 +0000 (10:44 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 26 Jul 2023 08:44:31 +0000 (10:44 +0200)
Change-Id: I057e2c2008789a35fb6b07763fb929a91802ef63
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/full_install_osm.sh

index 591a136..256b8d5 100755 (executable)
@@ -186,6 +186,7 @@ function install_osmclient(){
     sudo DEBIAN_FRONTEND=noninteractive apt-get install -y python3-osm-im python3-osmclient
     if [ -f /usr/lib/python3/dist-packages/osm_im/requirements.txt ]; then
         python3 -m pip install -r /usr/lib/python3/dist-packages/osm_im/requirements.txt
+        patch $HOME/.local/lib/python3.10/site-packages/pyangbind/lib/yangtypes.py < /usr/share/osm-devops/docker/osmclient/pyangbind.patch
     fi
     if [ -f /usr/lib/python3/dist-packages/osmclient/requirements.txt ]; then
         sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libmagic1