Skip to content

DeprecationWarning: The distutils package is deprecated #35

Description

@alexjuda

This line seems to trigger a deprecation warning on Python 3.10. This happens both for the latest released version (1.0.4) as well as the latest master.

Minimal working example

$ python -W default -c 'import editor; editor.get_editor()'
/Users/alex/my-project/venv/lib/python3.10/site-packages/editor.py:11: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.spawn import find_executable

Impact

  • Noisy test output from pytest test suite. Explanation: DeprecationWarnings are silenced by default but pytest shows them anyway. Projects that use editor get warnings in their test output.
  • This functionality will eventually break in Python 3.12.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions