(newroot, oldroot)
| 85 | |
| 86 | |
| 87 | def copy_source_tree(newroot, oldroot): |
| 88 | print(f'copying the source tree from {oldroot} to {newroot}...') |
| 89 | if os.path.exists(newroot): |
| 90 | if newroot == SRCDIR: |
| 91 | raise Exception('this probably isn\'t what you wanted') |
| 92 | shutil.rmtree(newroot) |
| 93 | |
| 94 | shutil.copytree(oldroot, newroot, ignore=support.copy_python_src_ignore) |
| 95 | if os.path.exists(os.path.join(newroot, 'Makefile')): |
| 96 | # Out-of-tree builds require a clean srcdir. "make clean" keeps |
| 97 | # the "python" program, so use "make distclean" instead. |
| 98 | _run_quiet([MAKE, 'distclean'], cwd=newroot) |
| 99 | |
| 100 | |
| 101 | ################################## |
no test coverage detected
searching dependent graphs…