Skip to content

distutils is removed in Python 3.12 #2869

Description

@cclauss

EDIT: This issue was closed via nodejs/gyp-next#214 which is available in node-gyp v10+.


distutils is deprecated with removal planned for Python 3.12. See the What’s New entry for more information.

Our only current use of Python distutils is at:

from distutils.version import StrictVersion

env = {"__builtins__": {}, "v": StrictVersion}

As discussed in https://stackoverflow.com/questions/11887762, we should replace distutils.version.StrictVersion with packaging.version.parse.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions