From 37bc7aa7e3f3d159844a680424875aa9b4f36ce8 Mon Sep 17 00:00:00 2001 From: Barbara Kemper Date: Wed, 23 Oct 2024 10:02:33 -0400 Subject: [PATCH] updates due to build path changes Signed-off-by: Barbara Kemper --- cicd/install-tk.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/cicd/install-tk.py b/cicd/install-tk.py index a2e19eb..44b48a4 100755 --- a/cicd/install-tk.py +++ b/cicd/install-tk.py @@ -25,7 +25,10 @@ import os import platform import re -import requests +try: + import requests +except ImportError: + pass import subprocess import sys import zipfile @@ -189,6 +192,7 @@ def get_packages(lib_root, tk_base, release, platform, pkgs): # Package was not found, bail out if resp.status_code == 404: + print_err("***** get_packages : got 404 for package ... bailing out ... ") is_installed = False break @@ -214,8 +218,13 @@ def main(args): # Create output directory os.makedirs(lib_root, exist_ok=True) - is_installed = get_packages(lib_root, args.tk_base, args.release, - args.platform, TK_PKGS) + if args.platform.lower() in ("linux-64", "win-64"): + print_err("***** main : binary supported on platform {}".format(args.platform)) + is_installed = get_packages(lib_root, args.tk_base, args.release, + args.platform, TK_PKGS) + else: + print_err("***** main : REST ONLY platform {}".format(args.platform)) + is_installed = False update_tk_version(args.root, is_installed and args.release or 'none')