Skip to content

DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12 #123

Closed

Description

I get the following warning in pytest:

venv/lib/python3.10/site-packages/msal_extensions/cache_lock.py:7: 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.version import LooseVersion

Activity

  1. added
    question
    on Dec 6, 2023
  2. rayluo commented on Dec 6, 2023

    @rayluo
    Contributor

    Were you using our 1.0.0 version? We fixed this issue recently. You may pull our latest dev branch and try it out. Let us know if that works. We will ship a new version soon.

  3. fredrike commented on Dec 7, 2023

    @fredrike
    Author

    Well, I'm using the latest version fråm pypi, I do not have an extra environment to help you with testing.

  4. rayluo commented on Dec 7, 2023

    @rayluo
    Contributor

    You do not have to use an extra environment. Your existing environment can pull the not-yet-released version from this official repo by:

    pip uninstall msal-extensions
    pip install git+https://github.com/AzureAD/microsoft-authentication-extensions-for-python.git@dev
    

    Afterwards, you can always revert back to the existing 1.0.0 version by a normal pip install msal-extensions.

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

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions