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

Distutils is deprecated and will be remove in python 3.12 #824

Closed
RomainBrault opened this issue Jan 3, 2022 · 6 comments
Closed

Distutils is deprecated and will be remove in python 3.12 #824

RomainBrault opened this issue Jan 3, 2022 · 6 comments

Comments

@RomainBrault
Copy link

RomainBrault commented Jan 3, 2022

Distutils is used in many places.

Is there any hope that Babel will work with python 3.12?

See:

@akx
Copy link
Member

akx commented Jan 25, 2022

Thanks for the heads-up.

Yes, Babel will likely work with Python 3.12 – we'll likely excise the distutils compatibility stuff by then.

That said, I wonder if anyone really uses the distutils command support...
Note to self: https://setuptools.pypa.io/en/latest/userguide/extension.html

@RosanneZe
Copy link

Is this the same issue that causes the SetuptoolsDeprecationWarning when using the distutils/setuptools integration? I looked into using the cli instead of the integration, but that doesn't seem to pick up the configuration options I now have in a setup.cfg file ([extract_messages], [init_catalog] etc).

@akx
Copy link
Member

akx commented Feb 14, 2022

@RosanneZe What warning is that in particular?

@RosanneZe
Copy link

RosanneZe commented Feb 14, 2022

@akx This warning:
.venv/lib/python3.8/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.

(eta: this is when running python3 setup.py compile_catalog -l en)

akx added a commit that referenced this issue Feb 23, 2022
The non-conditional imports have been around for 6 to 17 years,
so they should be safe in conservative situations too.

Refs #824
akx added a commit that referenced this issue Apr 8, 2022
The non-conditional imports have been around for 6 to 17 years,
so they should be safe in conservative situations too.

Refs #824
@akx
Copy link
Member

akx commented Apr 8, 2022

@RosanneZe That seems like an unrelated issue. Can you maybe open a new issue about it with a better repro case?

@akx
Copy link
Member

akx commented Apr 8, 2022

With #835, Setuptools is used as the first preference, and distutils is the fallback.

A future version of Babel will likely drop the fallbacks.

Thanks for the heads-up, @RomainBrault!

@akx akx closed this as completed Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants