-
Notifications
You must be signed in to change notification settings - Fork 543
Replace usage of deprecated distutils.(file|dir)_util
#10530
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10530
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 6 PendingAs of commit 5a6ae1f with merge base 0ea7c11 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D73804939 |
@pytorchbot label "topic: not user facing" |
Summary: X-link: facebook/FAI-PEP#543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
601ea90
to
47ccaa6
Compare
This pull request was exported from Phabricator. Differential Revision: D73804939 |
Summary: X-link: pytorch/executorch#10530 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
Summary: X-link: pytorch/executorch#10530 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
Summary: X-link: pytorch/executorch#10530 Pull Request resolved: facebook#543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
Summary: X-link: pytorch/executorch#10530 Pull Request resolved: facebook#543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
Summary: X-link: facebook/FAI-PEP#543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
Summary: X-link: pytorch/executorch#10530 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
47ccaa6
to
8f2ea92
Compare
Summary: X-link: pytorch/executorch#10530 Pull Request resolved: facebook#543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
This pull request was exported from Phabricator. Differential Revision: D73804939 |
8f2ea92
to
de1e508
Compare
Summary: Pull Request resolved: pytorch#10530 X-link: facebook/FAI-PEP#543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
This pull request was exported from Phabricator. Differential Revision: D73804939 |
Summary: X-link: facebook/FAI-PEP#543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
de1e508
to
6f08e96
Compare
This pull request was exported from Phabricator. Differential Revision: D73804939 |
6f08e96
to
fc698a7
Compare
Summary: X-link: facebook/FAI-PEP#543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
This pull request was exported from Phabricator. Differential Revision: D73804939 |
fc698a7
to
2422bfc
Compare
Summary: X-link: facebook/FAI-PEP#543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
This pull request was exported from Phabricator. Differential Revision: D73804939 |
Summary: X-link: pytorch/executorch#10530 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
Summary: X-link: pytorch/executorch#10530 Pull Request resolved: facebook#543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
Summary: X-link: facebook/FAI-PEP#543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
2422bfc
to
5a6ae1f
Compare
This pull request was exported from Phabricator. Differential Revision: D73804939 |
Summary: X-link: pytorch/executorch#10530 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
Summary: X-link: pytorch/executorch#10530 Pull Request resolved: facebook#543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939
Summary: X-link: pytorch/executorch#10530 Pull Request resolved: #543 `distutils` has been deprecated since Python 3.10, and [removed in Python 3.12](https://docs.python.org/3/whatsnew/3.12.html#distutils). Existing usage will now raise the following error under Python 3.12+: ``` ModuleNotFoundError: No module named 'distutils' ``` This diff replaces `distutils` usage according to [PEP-632 migration advice](https://peps.python.org/pep-0632/#migration-advice). --- I generated this diff by looking for all usages of `distutils.*copy_(tree|file)` and replaced them with `shutil.copy(tree|file)`. These should be close to drop-in replacements! Reviewed By: itamaro, mergennachin Differential Revision: D73804939 fbshipit-source-id: 239f886c87c73cb76330f5894757f4b3fe38a9db
Summary:
X-link: facebook/FAI-PEP#543
distutils
has been deprecated since Python 3.10, and removed in Python 3.12.Existing usage will now raise the following error under Python 3.12+:
This diff replaces
distutils
usage according to PEP-632 migration advice.I generated this diff by looking for all usages of
distutils.*copy_(tree|file)
and replaced them withshutil.copy(tree|file)
. These should be close to drop-in replacements!Differential Revision: D73804939