Skip to content

guidata using removed distutils module #111

Description

@beenje

While creating a PR on conda-forge (conda-forge/plotpy-feedstock#23), I noticed that importing from guidata.external import darkdetect on Darwin is failing for Python >=3.12.

distutils has been deprecated since python 3.10 and removed in 3.12: https://docs.python.org/3/library/distutils.html

This code could be replaced using the packaging module. That would require a new dependency.
On the other hand, it's used to detect if macOS is greater than 10.13, which is from 2017 and unsupported since 2020. Do we still need to be compatible with such an old version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions