Show More
@@ -27,6 +27,7 import gh_api | |||
|
27 | 27 | basedir = os.path.join(os.path.expanduser("~"), ".ipy_pr_tests") |
|
28 | 28 | repodir = os.path.join(basedir, "ipython") |
|
29 | 29 | ipy_repository = 'git://github.com/ipython/ipython.git' |
|
30 | ipy_http_repository = 'http://github.com/ipython/ipython.git' | |
|
30 | 31 | gh_project="ipython/ipython" |
|
31 | 32 | |
|
32 | 33 | supported_pythons = ['python2.6', 'python2.7', 'python3.1', 'python3.2'] |
@@ -65,10 +66,16 def setup(): | |||
|
65 | 66 | |
|
66 | 67 | # Check out and update the repository |
|
67 | 68 | if not os.path.exists('ipython'): |
|
69 | try : | |
|
68 | 70 | check_call(['git', 'clone', ipy_repository]) |
|
71 | except CalledProcessError : | |
|
72 | check_call(['git', 'clone', ipy_http_repository]) | |
|
69 | 73 | os.chdir(repodir) |
|
70 | 74 | check_call(['git', 'checkout', 'master']) |
|
75 | try : | |
|
71 | 76 | check_call(['git', 'pull', ipy_repository, 'master']) |
|
77 | except CalledProcessError : | |
|
78 | check_call(['git', 'pull', ipy_http_repository, 'master']) | |
|
72 | 79 | os.chdir(basedir) |
|
73 | 80 | |
|
74 | 81 | missing_libs_re = re.compile(r"Tools and libraries NOT available at test time:\n" |
General Comments 0
You need to be logged in to leave comments.
Login now