-
-
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
distutils
and setuptools._distutils
stubs are different
#10255
Comments
Note that we deliberately removed much of our FWIW I'm open to revisiting that decision if there's a good reason to, but we should think carefully about it. Prior to that change, it felt like stubtest was breaking every month due to the rate of changes setuptools was making to |
My opinions: stdlib
Regarding maintenance burden from setuptools development of Of course, if there's no usage of the stubs then better off staying deleted, e.g. I don't see much point in bringing back the So all of this adds up to the following possible plan of action:
(re maintenance: I think part of the problem setuptools has is that they themselves are not sure what is implementation detail or not. Leaving typing aside, I've been broken by setuptools a dozen times in the last couple years) |
That all sounds good; happy to cosign @hauntsaninja's plan of action (...in particular the last bullet 😉) |
It looks like
I wonder if |
Linking python#10255 There are cases of these being used, including in mypy This is reverts a small part of python#9795
Python 3.12 removed `distutils`. `distutils` from `setuptools` work fine, but have not typing stubs: python/typeshed#10255
Python 3.12 removed `distutils`. `distutils` from `setuptools` work fine, but have not typing stubs: python/typeshed#10255
As noted by the lead
If |
I know we could ship Personally I'd prefer putting the efforts into typing |
As far as I understand,
setuptools._distutils
is just a vendored copy ofdistutils
.But, right now they are different. For example:
core.pyi
)Here's the source code for
core.py
:So, we need to work on them!
Refs #10249
The text was updated successfully, but these errors were encountered: