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

Remove deprecated distutils functionality #92

Open
matthewfeickert opened this issue Jan 8, 2022 · 0 comments
Open

Remove deprecated distutils functionality #92

matthewfeickert opened this issue Jan 8, 2022 · 0 comments
Labels

Comments

@matthewfeickert
Copy link
Member

distutils is deprecated in Python 3.10+, as noted in the pip v21.3 release notes

On Python 3.10 or later, the installation scheme backend has been changed to use sysconfig. This is to anticipate the deprecation of distutils in Python 3.10, and its scheduled removal in 3.12. For compatibility considerations, pip installations running on Python 3.9 or lower will continue to use distutils.

To prevent bugs in the future that will cause tests to break, we should switch the distutils functionality

from distutils.dir_util import copy_tree

def create(name, path):
template_path = pkg_resources.resource_filename(
"recastatlas", "data/templates/helloworld"
)
copy_tree(template_path, path)

to setuptools (I think it is setuptools).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant