diff options
author | Roman Lacko <backup.rlacko@gmail.com> | 2012-06-20 16:49:18 +0200 |
---|---|---|
committer | Roman Lacko <backup.rlacko@gmail.com> | 2012-06-20 16:49:18 +0200 |
commit | a45501d6f78c0dd3a37282ccd7f92c7dae46e112 (patch) | |
tree | db6a4b90d0e8dae2f9203b4abd95f859b4b91e06 /setup.py | |
parent | a99ef8ddc8ed81ed4b0fa4615d1c066c5d18d145 (diff) |
fix submodule initialization
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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") |