Skip to content

Update test_peg_generator to not need distutils & reenable it #100238

Description

@encukou

distutils was removed from 3.12, as per PEP 632.
test_peg_generator, which uses it, was disabled. It should be updated to not need distutils.

See #92584

Linked PRs

Activity

  1. ramvikrams commented on Dec 30, 2022

    @ramvikrams
    Contributor

    I'd like to work on this I looked through test_peg_generator but I could not find any test that importing distuils

  2. ericsnowcurrently commented on Mar 8, 2023

    @ericsnowcurrently
    Member

    @Yhg1s, this feels like a release blocker. Thoughts?

  3. ericsnowcurrently commented on Mar 8, 2023

    @ericsnowcurrently
    Member

    @ramvikrams, distutils is used in Tools/peg_generator/pegen/build.py, which I'm guessing is exercised by tests under Lib/test/test_peg_generator. See the comment in Lib/test/test_peg_generator/__init__.py.

  4. ramvikrams commented on Mar 8, 2023

    @ramvikrams
    Contributor

    @ramvikrams, distutils is used in Tools/peg_generator/pegen/build.py, which I'm guessing is exercised by tests under Lib/test/test_peg_generator. See the comment in Lib/test/test_peg_generator/init.py.

    Thanks I'll check it

  5. ericsnowcurrently commented on Mar 8, 2023

    @ericsnowcurrently
    Member

    FYI, we may want to solve this in a way that can be shared between the c-analyzer and peg_generator tools. See #92584 (comment).

  6. Yhg1s commented on Mar 8, 2023

    @Yhg1s
    Member

    Yes, I consider this a release blocker for the betas (#92584 is left open as a release blocker for this reason).

  7. ramvikrams commented on Mar 12, 2023

    @ramvikrams
    Contributor

    I looked through the file but I had a question should I replace distutils with setuptools in Tools/peg_generator/pegen/build.py

  8. added 2 commits that reference this issue on May 23, 2023
  9. lysnikolaou commented on May 26, 2023

    @lysnikolaou
    Member

    Resolved in #104798.

  10. added a commit that references this issue on May 31, 2023
  11. added a commit that references this issue on Jul 5, 2023
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

    testsTests in the Lib/test dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions