Skip to content

Remove deprecated distutils functionality #92

@matthewfeickert

Description

@matthewfeickert

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions