Skip to content

gh-123389: Fix pegen --compile-extension in verbose mode - #163232

Open
maurycy wants to merge 1 commit into
python:mainfrom
maurycy:pegen-verbose-logging
Open

maurycy wants to merge 1 commit into
python:mainfrom
maurycy:pegen-verbose-logging

Conversation

@maurycy

@maurycy maurycy commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

With -v, pegen --compile-extension fails before compilation because setuptools.logging.set_threshold() raises AttributeError on a missing unpatched attribute.

Use logging.basicConfig() for verbose builds. On macOS with setuptools 84.2.1, the extension builds and the compiler commands go to stderr.

The comment that reported this:

Fixes #123389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

With removal of distutils in python3.12 from setuptools._distutils.dep_util import newer_group does not seem to work in pegen

1 participant