-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Should we delete the _distutils
directory from our setuptools
stubs ?
#9520
Comments
The There's currently two versions of Needless to say, stubtest doesn't understand any of this, and is very confused by the whole thing. Most patch releases of 3.10 these days bump the bundled version of Practically speaking, it's now pretty difficult to import the stdlib |
If I remember correctly, some setuptools classes are also subclasses of distutils, which could it make difficult to remove it. |
If I understand correctly. Unless python/cpython#101039 is backported, typeshed will have to wait at least until Python 3.10 (the first version where it's deprecated) is the oldest python version supported by type-checkers to even consider removing If it is backported, then typeshed can avoid installing Here's an idea: Effectively giving distutils / setuptools users the power to use the appropriate (not sure if importing from distutils is also considered deprecated if you're using the setuptools version? If it is, only validate |
I'm confused; what is the problem we're looking to solve? The quote from Alex seems to point to an issue of improving the maintainability of types-setuptools; I'd be totally fine with us stubtest ignoring everything in setuptools._distutils and distutils |
This is all mostly dead code. Let's only do things in response to user requests here. |
I guess there's two things:
|
What I don't know (and am hoping for), is whether using distutil at all with setuptools installed is considered bad practice, even with older python versions. In which case, ignore point 1.2, 2.1, drop Edit: found my answer https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html#prefer-setuptools |
Sorry for the drop by comment, this whole situation is quite involved, but if I understand correctly with #9795 you are now shipping the The test suite bug is a relatively easy fix, so if this is a compromise, we can get you back to the desired behavior. If this is already the actual desired behavior, then it's all good anyway, pay no attention to this comment 😅 |
No, it looks like this got resolved the other way round... 1) While more truthful, this is likely to not match what most users see. But all of this code is dying and I didn't see any mypy primer hits either way, so not sure anything matters. |
Okay, that's what I am missing then! I am having trouble seeing how that fixes the issue, so that explains why I was so confused. Anyway, if you wanna help fixing the tests issue, making sure the expected |
From @AlexWaygood :
#9460 (comment)
(also distutils being deprecated)
The text was updated successfully, but these errors were encountered: