Skip to content

Add setuptools as a dependency on Python 3.12? #15579

Closed

Description

@JukkaL

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?

Activity

  1. eli-schwartz commented on Jul 3, 2023

    @eli-schwartz
    Contributor

    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

  2. hauntsaninja commented on Jul 3, 2023

    @hauntsaninja
    Collaborator

    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

  3. AlexWaygood commented on Jul 4, 2023

    @AlexWaygood
    Member

    We could also have a mypyc extra that includes it, like we do for dmypy or reports.

    I'd personally prefer this, but agree that having it as an unconditional dependency would also probably be fine

  4. nickdrozd commented on Oct 5, 2023

    @nickdrozd
    Contributor

    I ran into this problem locally and in CI.

  5. added 2 commits that reference this issue on Oct 6, 2023
    a3a23c7
    3e7859f
  6. added a commit that references this issue on Oct 8, 2023
    ff7ac75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions