Skip to content

Commit a41f425

Browse files
committed
move copytree
1 parent 09f206b commit a41f425

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,9 @@ def import_python_sources(args):
845845
SUITE.vc.git_command(SUITE.dir, ["clean", "-fdx"])
846846
shutil.rmtree("graalpython")
847847

848+
# re-copy lib-python
849+
shutil.copytree(os.path.join(python_sources, "Lib"), _get_stdlib_home())
850+
848851
for inlined_file in pypy_files + extra_pypy_files:
849852
original_file = None
850853
name = os.path.basename(inlined_file)
@@ -888,9 +891,6 @@ def import_python_sources(args):
888891
if original_file is None:
889892
mx.warn("Could not update %s - original file not found" % inlined_file)
890893

891-
# re-copy lib-python
892-
shutil.copytree(os.path.join(python_sources, "Lib"), _get_stdlib_home())
893-
894894
# commit and check back
895895
SUITE.vc.git_command(SUITE.dir, ["add", "."])
896896
raw_input("Check that the updated files look as intended, then press RETURN...")

0 commit comments

Comments
 (0)