aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 3eb1aed34..581859cc8 100644
--- a/setup.py
+++ b/setup.py
@@ -101,6 +101,9 @@ for pkg in ["PySide", "pysideuic"]:
# Ensure that git submodules are initialized, if this is the git repo clone
if os.path.isdir(".git"):
print("Initializing submodules for PySide version %s" % __version__)
+ git_update_cmd = ["git", "submodule", "update", "--init"]
+ if run_process(git_update_cmd) != 0:
+ raise DistutilsSetupError("Failed to initialize the git submodules")
git_pull_cmd = ["git", "submodule", "foreach", "git", "pull", "origin", "master"]
if run_process(git_pull_cmd) != 0:
raise DistutilsSetupError("Failed to initialize the git submodules")