Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite063a97

Browse files
committed
keep cpython repo up to date
1 parentea28baf commite063a97

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎build.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ def shell(cmd, capture=False, chdir=None):
2626

2727

2828
defgit_clone(repository,directory,branch=None):
29-
shell("git clone --depth 1 --no-single-branch {} {}".format(repository,directory))
29+
ifnotos.path.exists(directory):
30+
shell("git clone --depth 1 --no-single-branch {} {}".format(repository,directory))
3031
ifbranch:
3132
shell("git -C {} checkout {}".format(directory,branch))
32-
33+
shell("git -C {} pull".format(directory))
3334

3435
defprepare_env():
35-
ifnotos.path.exists('cpython'):
36-
git_clone('https://github.com/python/cpython.git','cpython',VERSION)
36+
git_clone('https://github.com/python/cpython.git','cpython',VERSION)
3737

3838
locale_dir=os.path.join('cpython','locale','ko','LC_MESSAGES')
3939
ifnotos.path.exists(locale_dir):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp