diff options
author | Simo Fält <simo.falt@qt.io> | 2021-11-25 16:08:21 +0200 |
---|---|---|
committer | Simo Fält <simo.falt@qt.io> | 2022-04-11 17:49:05 +0300 |
commit | 4187f1d7bfba5b519cfa0880fce6f793c0ffb6f1 (patch) | |
tree | 1f51bd82b9175a94b41b21514b353e08fc4db533 /build_scripts | |
parent | ed759eaa5665d3c9f134ffd75d41edc3fc22a462 (diff) |
Build macOS universal binary
Collection of bits and pieces to enable MacOS universal
wheel creation in Qt CI.
Change-Id: I0a889258ec4f89ca3a26c8bf2ee76f0d5c676a7a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'build_scripts')
-rw-r--r-- | build_scripts/utils.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/build_scripts/utils.py b/build_scripts/utils.py index 5d62d4307..49839e2de 100644 --- a/build_scripts/utils.py +++ b/build_scripts/utils.py @@ -47,6 +47,7 @@ import subprocess import fnmatch import itertools import glob +from os.path import expanduser # There is no urllib.request in Python2 try: @@ -1157,7 +1158,7 @@ def install_pip_dependencies(env_pip, packages, upgrade=True): def get_qtci_virtualEnv(python_ver, host, hostArch, targetArch): - _pExe = "python" + _pExe = "python2" _env = "env{}".format(str(python_ver)) env_python = _env + "/bin/python" env_pip = _env + "/bin/pip" @@ -1229,3 +1230,16 @@ def get_ci_qmake_path(ci_install_dir, ci_host_os): return qmake_path + "\\bin\\qmake.exe" else: return qmake_path + "/bin/qmake" + + +def provisioning(): + home = expanduser("~") + file = "https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_100-based-dyn-mac-universal.7z" + target = os.path.join(home, "libclang-dynlibs-10.0-universal") + try: + download_and_extract_7z(file, target) + except RuntimeError as e: + print("debug: Exception error: {}".format(e)) + file = file.replace("s://download","://master") + print("New url: {}".format(file)) + download_and_extract_7z(file, target)
\ No newline at end of file |