Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Feb 16, 2024
1 parent 1b4dcec commit 1125833
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"x64": "64"}

def download_check_fail(url, expected_type):
print("download URL:", url)
response = requests.get(url, allow_redirects=True, timeout=60)
if not response.ok:
raise RuntimeError("error retrieving "+response.url)
Expand Down Expand Up @@ -73,6 +74,8 @@ def qtc_download_check_extract(cfg, dir_install):
os = os_map[cfg['os']],
arch = arch_map[cfg['arch']])

print("base url", base_url)

archive_names = [qtc_module+".7z" for qtc_module in cfg['versions']['qtc_modules']]

dir_install_qt = os.path.join(dir_install, "Tools", "QtCreator")
Expand Down Expand Up @@ -183,11 +186,14 @@ def qt_download_check_extract(cfg, dir_install):


if __name__ == "__main__":
print("HELLO!")
parser = argparse.ArgumentParser()
parser.add_argument('--install_path', type=str, default=None)
parser.add_argument('--export_variables', action="store_true")
args = parser.parse_args()

print("args", args)

cfg = {}

cfg['os'] = platform.system()
Expand All @@ -200,12 +206,15 @@ def qt_download_check_extract(cfg, dir_install):
if not dir_install:
dir_install = os.path.join(tempfile.gettempdir(), "qtc_sdk")

print("makedirs")
os.makedirs(dir_install, exist_ok=True)

print("qtc_download_check_extract")
prefix_paths = []
dir_qtc = qtc_download_check_extract(cfg, dir_install)
prefix_paths.append(dir_qtc)

print("qt_download_check_extract")
dir_qt = qt_download_check_extract(cfg, dir_install)
prefix_paths.append(dir_qt)

Expand Down

0 comments on commit 1125833

Please sign in to comment.