From a45501d6f78c0dd3a37282ccd7f92c7dae46e112 Mon Sep 17 00:00:00 2001 From: Roman Lacko Date: Wed, 20 Jun 2012 16:49:18 +0200 Subject: fix submodule initialization --- setup.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'setup.py') 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") -- cgit v1.2.3