Revert "Remove unused code"

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>
diff --git a/setup.py b/setup.py
index 4d1c9e9..ec75988 100644
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,12 @@
         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)