-
Notifications
You must be signed in to change notification settings - Fork 361
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
Stop using distutils
#969
Comments
In case this might help
|
We were adding some code to navigator to check for ciruclar import before enabling isort and came across this. The distutils warning was suppressed, so it's not blocking anything, but since we came across it, thought it would be good to let you all now. |
Do you have any good suggestion for an alternative to |
|
License-wise, can we add that module to runner (and then reuse in AWX)? We have this problem in a couple of projects. |
This should be somewhat simple to do. I see runner using
|
Remove use of distutils Fixes #969 Reviewed-by: Alexander Sowitzki <dev@eqrx.net> Reviewed-by: None <None>
It's deprecated. Python 3.10 raises a
DeprecationWarning
and Python 3.12 won't have it in the stdlib anymore.Why fix it now and not wait for another 2 years when this will produce an
ImportError
? Because it's nice to solve such problems ahead of time and also since ansible-runner is a library, it also causes these warnings (or even errors with pytest'sfilterwarning = error
orpython -Werror
1) for the projects that have Python 3.10 in their test matrixes. In particular, it's been observed in ansible-navigator.Footnotes
Learn more at https://docs.python.org/dev/using/cmdline.html#cmdoption-W ↩
The text was updated successfully, but these errors were encountered: