8000 run git submodule sync due to some random errors in Travis · msofka/opencv-python@cdfe446 · GitHub
[go: up one dir, main page]

Skip to content

Commit cdfe446

Browse files
committed
run git submodule sync due to some random errors in Travis
1 parent 541fbdb commit cdfe446

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ def main():
2727

2828
import pip.vcs.git
2929
g = pip.vcs.git.Git()
30+
g.run_command(["submodule", "sync"])
3031
use_depth = g.get_git_version() >= type(g.get_git_version())("1.8.4")
3132

3233
g.run_command(["submodule", "update", "--init", "--recursive"] +
33-
(["--depth=1"] if use_depth else []) +
34+
["--depth=1"] if use_depth else [] +
3435
[cmake_source_dir])
3536

3637
if build_contrib:
3738
g.run_command(["submodule", "update", "--init", "--recursive"] +
38-
(["--depth=1"] if use_depth else []) +
39+
["--depth=1"] if use_depth else [] +
3940
["opencv_contrib"])
4041

4142
del use_depth, g, pip

0 commit comments

Comments
 (0)
0