Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.10 deprecation warnings due to distutils import #1282

Closed
The-Compiler opened this issue Dec 3, 2021 · 2 comments
Closed

Python 3.10 deprecation warnings due to distutils import #1282

The-Compiler opened this issue Dec 3, 2021 · 2 comments
Labels
deprecation Maintenance Discussion or action around maintaining astroid or the dev workflow python 3.12
Milestone

Comments

@The-Compiler
Copy link
Contributor

The-Compiler commented Dec 3, 2021

Steps to reproduce

  • Run python3.10 -Wall -c "import astroid"

Current behavior

.../astroid/interpreter/_import/spec.py:20: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  import distutils
.../astroid/modutils.py:51: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
  from distutils.sysconfig import get_python_lib  # pylint: disable=import-error

Expected behavior

No deprecation warnings.

python -c "from astroid import __pkginfo__; print(__pkginfo__.version)" output

2.9.1-dev0 (on 6691a9e)

Additional context

Might be related to #1103, but seems like a separate issue.

@Pierre-Sassoulas Pierre-Sassoulas added deprecation Maintenance Discussion or action around maintaining astroid or the dev workflow python 3.12 labels Dec 3, 2021
@Pierre-Sassoulas
Copy link
Member

Doing #1103 would work, but upgrading setuptools min version to one that do not use distutils would probably work (?). I think we won't change anything before 3.12 is available in github actions.

pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Dec 3, 2021
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Dec 3, 2021
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Dec 20, 2021
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Dec 26, 2021
@cdce8p cdce8p added this to the 2.10.0 milestone Dec 27, 2021
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Dec 31, 2021
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Jan 17, 2022
@DanielNoord
Copy link
Collaborator

Closed with #1323

pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Mar 5, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Mar 21, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Mar 31, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Apr 3, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Apr 4, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Apr 22, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue May 1, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue May 12, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Jun 14, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Jun 17, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Aug 9, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Aug 27, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Oct 5, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Nov 7, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Nov 7, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Nov 25, 2022
pylbrecht added a commit to pylbrecht/qutebrowser that referenced this issue Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation Maintenance Discussion or action around maintaining astroid or the dev workflow python 3.12
Projects
None yet
Development

No branches or pull requests

4 participants