def main()

in radlab-launcher/installer_prereq.py [0:0]


def main():

    # Install python dependencies.
    print("\nInstalling Libraries...")
    os.system("pip3 install --no-cache-dir -r requirements.txt")

    # Set up Terraform binaries
    tfOutput = subprocess.Popen(["terraform -version"],shell=True, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL).stdout.read().strip().decode('utf-8')
  
    ## Check if Terrafrom binaries are already installed
    if "command not found" in tfOutput:
        print("\nTerraform binaries not installed. Starting installation...\n")
        os.system("python3 terraform_installer.py")
    else:
        print("\nTerraform binaries already installed. Skipping installation...\n")
    
    # Printing Terraform Version
    os.system("terraform -version")

    # Set up Cloud sdk & Kubectl libraries
    os.system("python3 cloudsdk_kubectl_installer.py")

    print("\nPRE-REQ INSTALLTION COMPLETED\n")