Temporary fix to install stable reclass

Change-Id: I45c35d4ab131e1949d4a1f2ad62616694ef9cffb
diff --git a/src/com/mirantis/mk/SaltModelTesting.groovy b/src/com/mirantis/mk/SaltModelTesting.groovy
index 64ca6e7..0d228e4 100644
--- a/src/com/mirantis/mk/SaltModelTesting.groovy
+++ b/src/com/mirantis/mk/SaltModelTesting.groovy
@@ -63,12 +63,18 @@
           sh("cd /srv/salt && find . -type f \\( -name '*.yml' -or -name '*.sh' \\) -exec sed -i 's/apt.mirantis.com/apt.mirantis.net:8085/g' {} \\;")
           sh("bash -c 'source /srv/salt/scripts/bootstrap.sh; cd /srv/salt/scripts && source_local_envs && system_config_master'")
           sh("bash -c 'source /srv/salt/scripts/bootstrap.sh; cd /srv/salt/scripts && source_local_envs && saltmaster_bootstrap'")
-          sh("bash -c 'source /srv/salt/scripts/bootstrap.sh; install_reclass master'")
+          sh("""for s in \$(python -c \"import site; print(' '.join(site.getsitepackages()))\"); do
+                    sudo -H pip install --install-option=\"--prefix=\" --upgrade --force-reinstall -I \
+                      -t \"\$s\" git+https://github.com/salt-formulas/reclass.git;
+                  done""")
         } else {
           sh("cp -r ${testDir}/* /srv/salt/reclass && echo '127.0.1.2  salt' >> /etc/hosts")
           sh("cd /srv/salt && find . -type f \\( -name '*.yml' -or -name '*.sh' \\) -exec sed -i 's/apt-mk.mirantis.com/apt.mirantis.net:8085/g' {} \\;")
           sh("cd /srv/salt && find . -type f \\( -name '*.yml' -or -name '*.sh' \\) -exec sed -i 's/apt.mirantis.com/apt.mirantis.net:8085/g' {} \\;")
-          sh("bash -c 'source /srv/salt/scripts/bootstrap.sh; install_reclass master'")
+          sh("""for s in \$(python -c \"import site; print(' '.join(site.getsitepackages()))\"); do
+                    sudo -H pip install --install-option=\"--prefix=\" --upgrade --force-reinstall -I \
+                      -t \"\$s\" git+https://github.com/salt-formulas/reclass.git;
+                  done""")
           sh("timeout ${testTimeout} bash -c 'source /srv/salt/scripts/bootstrap.sh; cd /srv/salt/scripts && source_local_envs && configure_salt_master && configure_salt_minion && install_salt_formula_pkg'")
           sh("(pgrep salt-master | sed /\$\$/d | xargs --no-run-if-empty -I {} kill -9 {} || true) && pkill -9 salt-minion || true")
           sh("service salt-master restart && service salt-minion restart && sleep 15")