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 b75a331
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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 @@ -200,12 +203,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 b75a331

Please sign in to comment.