Revert "Remove unused code" 59/13559/1 release-v14.0-start
authorbeierlm <mark.beierl@canonical.com>
Tue, 20 Jun 2023 19:31:53 +0000 (21:31 +0200)
committerbeierlm <mark.beierl@canonical.com>
Tue, 20 Jun 2023 19:31:53 +0000 (21:31 +0200)
This reverts commit bd458dbed1a932a5a97fb245f378f5a16d6642d4.

Reason for revert: Build failures
- https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/master/509/
- https://osm.etsi.org/jenkins/job/osmclient-stage_2-merge/job/master/385/

Change-Id: I271aa7111db3ce8090269627da102788d9324c28
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
setup.py

index 4d1c9e9..ec75988 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,12 @@ class Install_osm_im(install):
         subprocess.call([sys.executable, "-m", "pip", "install", package])
 
     def run(self):
+        self.pipinstall('pyang')
+        self.pipinstall('pyangbind')
+        import pyangbind
+        print("Using dir {}/{} for python artifacts".format(os.getcwd(), self.im_dir))
+        path = "{}/{}".format(os.getcwd(), self.im_dir)
+
         protoc_command = ["make", "models"]
         if subprocess.call(protoc_command) != 0:
             sys.exit(-1)