diff options
Diffstat (limited to 'build_scripts')
-rw-r--r-- | build_scripts/main.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py index 160eb12a8..586e58d0a 100644 --- a/build_scripts/main.py +++ b/build_scripts/main.py @@ -271,43 +271,6 @@ def prefix(): return name -# Initialize, pull and checkout submodules -def prepare_sub_modules(): - v = get_package_version() - print(f"Initializing submodules for {PYSIDE_MODULE} version: {v}") - submodules_dir = os.path.join(setup_script_dir, "sources") - - # Create list of [name, desired branch, absolute path, desired - # branch] and determine whether all submodules are present - need_init_sub_modules = False - - for m in submodules: - module_name = m[0] - module_dir = m[1] if len(m) > 1 else '' - module_dir = os.path.join(submodules_dir, module_dir, module_name) - # Check for non-empty directory (repository checked out) - if not os.listdir(module_dir): - need_init_sub_modules = True - break - - if need_init_sub_modules: - git_update_cmd = ["git", "submodule", "update", "--init"] - if run_process(git_update_cmd) != 0: - m = "Failed to initialize the git submodules: update --init failed" - raise DistutilsSetupError(m) - git_pull_cmd = ["git", "submodule", "foreach", "git", "fetch", "--all"] - if run_process(git_pull_cmd) != 0: - m = "Failed to initialize the git submodules: git fetch --all failed" - raise DistutilsSetupError(m) - else: - print("All submodules present.") - - git_update_cmd = ["git", "submodule", "update"] - if run_process(git_update_cmd) != 0: - m = "Failed to checkout the correct git submodules SHA1s." - raise DistutilsSetupError(m) - - def prepare_build(): # Clean up temp build folder. for n in ["build"]: |