-
-
Notifications
You must be signed in to change notification settings - Fork 454
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
Filter out some distutils deprecation warnings with python 3.10 #33135
Comments
Branch: u/tornaria/deprecation_distutils |
New commits:
|
Author: Gonzalo Tornaría |
Commit: |
comment:2
I see the warning a lot during docbuilding coming from matplotlib (building on sage-on-gentoo with python 3.10 right now)
for example. Should it be added to the warnings to catch? |
comment:3
I wonder if filters should strive be more specific (which would be itself a more precise form of documenting the filter). For example, the pythran warning in the context of this patch could have
which catches the deprecation warnings and is explicit about what is being ignored. WRT the current patch, there are two uses of distutils in sage source code:
So I have no clue how to remove these two uses of distutil. The third one is in numpy, not yet fixed upstream (see numpy/numpy#20225) |
comment:4
Replying to @kiwifb:
I don't get that one. Are you using matplotlib 3.5? |
comment:5
Right, I am still at 3.4.3 in Gentoo (on the stable channel), switching to 3.5 is easy if that fixes it. |
Reviewer: Matthias Koeppe |
comment:7
For |
comment:8
I'm still getting lots of warnings coming from cython
|
comment:9
Replying to @tornaria:
I don't see any code in sagelib or cython that would emit this. Is this still needed at all? |
comment:10
I don't get any warnings from cython myself (I'm using the one installed by sage):
Can you try again adding Cython to the module regex as in |
comment:11
I moved the issue of removing distutils from the sage library to #33137 so this ticket can be merged quickly for 9.5. |
comment:13
Adding Cython to the regex removes only half the warning. I had to add the distutils module too. |
Changed branch from u/tornaria/deprecation_distutils to u/arojas/deprecation_distutils |
comment:16
https://github.com/sheerluck/sage/runs/4788938218 shows that with
New commits:
|
Changed branch from u/arojas/deprecation_distutils to |
As reported in #30766 comment:111
CC: @antonio-rojas
Component: misc
Author: Gonzalo Tornaría
Branch/Commit:
79234bb
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/33135
The text was updated successfully, but these errors were encountered: