You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add setuptools as a dependency on Python 3.12? #15579
Mypyc needs distutils or setuptools to run, but Python 3.12 no longer bundles distutils (PEP 632). This seems to imply that we need to include setuptools as a dependency of mypy (at least on Python 3.12 or later), or unbundle mypyc into a separate distribution on PyPI. Thoughts?
One possible alternative is to teach mypyc to emit the relevant sources without compiling them, so that people can integrate it into other build systems. :D
Activity
eli-schwartz commentedon Jul 3, 2023
One possible alternative is to teach
mypycto emit the relevant sources without compiling them, so that people can integrate it into other build systems. :Dhauntsaninja commentedon Jul 3, 2023
I think fine to include setuptools as a dependency. We could also have a mypyc extra that includes it, like we do for dmypy or reports.
Eli's suggestion sounds great, but is little orthogonal
AlexWaygood commentedon Jul 4, 2023
I'd personally prefer this, but agree that having it as an unconditional dependency would also probably be fine
nickdrozd commentedon Oct 5, 2023
I ran into this problem locally and in CI.
Add an extra for mypyc dependencies
Add an extra for mypyc dependencies
Add an extra for mypyc dependencies (#16229)