Skip to content

Replace usage of deprecated distutils.(file|dir)_util #10590

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

Merged
merged 1 commit into from
May 1, 2025

Conversation

bowiechen
Copy link
Contributor

Summary:
reverted in D73942429 because of S515958

distutils.dir_util.copy_tree works fine if the target directory exists, but shutil.copytree fails by default, unless we pass in dirs_exist_ok=True

Differential Revision: D73945977

Summary:
reverted in D73942429 because of S515958

> `distutils.dir_util.copy_tree` works fine if the target directory exists, but `shutil.copytree` fails by default, unless we pass in `dirs_exist_ok=True`

Differential Revision: D73945977
@bowiechen bowiechen requested a review from mergennachin as a code owner April 30, 2025 19:38
Copy link

pytorch-bot bot commented Apr 30, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10590

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit b12c587 with merge base 4524838 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 30, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73945977

@bowiechen
Copy link
Contributor Author

@pytorchbot label "topic: not user facing"

facebook-github-bot pushed a commit to facebook/FAI-PEP that referenced this pull request May 1, 2025
Summary:
X-link: pytorch/executorch#10590

reverted in D73942429 because of S515958

> `distutils.dir_util.copy_tree` works fine if the target directory exists, but `shutil.copytree` fails by default, unless we pass in `dirs_exist_ok=True`

Reviewed By: mergennachin, itamaro

Differential Revision: D73945977

fbshipit-source-id: 6a88ac89e98eae72bcf7f875cf0d4302b6edacbf
@facebook-github-bot facebook-github-bot merged commit e500d87 into pytorch:main May 1, 2025
5 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants