Skip to content
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

fix: Use shutil.copytree over distutils #155

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

matthewfeickert
Copy link
Member

@matthewfeickert matthewfeickert commented Jun 17, 2024

  • As setuptools is not the build backend there should be no reliance on setuptools or distutils for use. This exchanges the deprecated distutils.dir_util.copy_tree for shutil.copytree as recast-atlas is Python 3.8+.
  • Note that as distutils is also deprecated, if this was not done then setuptools._distutils.dir_util.copy_tree would need to be used.

* As setuptools is not the build backend there should be no reliance on
  setuptools or distutils for use. This exchanges the deprecated
  distutils.dir_util.copy_tree for shutil.copytree as recast-atlas
  is Python 3.8+.
* Note that as distutils is also deprecated, if this was not done then
  setuptools._distutils.dir_util.copy_tree would need to be used.
@matthewfeickert matthewfeickert self-assigned this Jun 17, 2024
@matthewfeickert matthewfeickert merged commit caa0f1b into main Jun 17, 2024
10 checks passed
@matthewfeickert matthewfeickert deleted the fix/remove-distutils branch June 17, 2024 08:11
matthewfeickert added a commit that referenced this pull request Jun 17, 2024
* Add dirs_exist_ok=True to allow the copying operation to continue if
  it encounters existing directories.
   - c.f. https://docs.python.org/3.12/library/shutil.html#shutil.copytree
   - dirs_exist_ok was added in Python 3.8.
* Amends PR #155.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant