-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Reapply "Include Swift Build support in second stage bootstrap builds" #8373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -587,7 +592,7 @@ def install_file(args, src, destination, destination_is_directory=True, ignored_ | |||
|
|||
logging.info("Installing %s to %s", src, dest) | |||
if os.path.isdir(src): | |||
shutil.copytree(src, dest, ignore=shutil.ignore_patterns(*ignored_patterns)) | |||
shutil.copytree(src, dest, ignore=shutil.ignore_patterns(*ignored_patterns), dirs_exist_ok=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the one change from the original PR, to ensure that the resource bundles we install are replaced instead of erroring out if the builder contains content from another build.
@swift-ci test |
0ea048b
to
e49d1da
Compare
@swift-ci please test |
@swift-ci please test Windows |
This reverts commit 6a2e45f. - Stop setting SWIFTPM_NO_SWBUILD_DEPENDENCY in the bootstrap script - Copy resource bundles required by Swift Build into the toolchain when installing
e49d1da
to
fb53b3a
Compare
@swift-ci test |
@swift-ci test Windows |
PR swiftlang#8373 (commit ID: 0193d5f) updated a shutil.copytree(...) command to pass in the `dirs_exists_ok=True` argument. However, Python added support for the `dirs_exists_ok` argument to `shutil.copytree` in 3.8. Update the function call to inspect the python version, and only add the argument if the script is running in a Python version equal, or higher than 3.8. rdar://147297864
PR swiftlang#8373 (commit ID: 0193d5f) updated a shutil.copytree(...) command to pass in the `dirs_exists_ok=True` argument. However, Python added support for the `dirs_exists_ok` argument to `shutil.copytree` in 3.8. Update the function call to inspect the python version, and only add the argument if the script is running in a Python version equal, or higher than 3.8. rdar://147297864
PR #8373 (commit ID: 0193d5f) updated a `shutil.copytree(...)` command to pass in the `dirs_exists_ok=True` argument. However, Python added support for the `dirs_exists_ok` argument to `shutil.copytree` in 3.8. Update the function call to inspect the python version, and only add the argument if the script is running in a Python version equal, or higher than 3.8. rdar://147297864
This reverts commit 6a2e45f.
There is one additional fix to the bootstrap script to allow overwriting directories when installing, to fix the incremental buildbot CI configuration.