Open zokrezyl opened 2 months ago
(I don't really have a better label than build
since it's about building something...). We should address it but I don't really know how. We could set some requirements on the Python version and setuptools, or we should modernize the function.
Would be great to expose also the cpython generator in the pegen library. (including Tokens file, for experimenting with custom tokens) into https://github.com/we-like-parsers/pegen/blob/main/src/pegen/__main__.py. Maybe I should raise a ticket there.
I wish I could help, but am not familiar with the setuptools. I tried to install the standard-distutils tool, but that is throwing further errors. I lost now the context of my checkout, will add later some exceptions to this ticket.
I played further, and looks like the remaining offending line is in setuptools/logging.py, line 38
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/setuptools/logging.py", line 38, in set_threshold
return set_threshold.unpatched(level)
I would just remove the '--compile-extension' feature. If someone wants to build extension, there are proper mechanism for it. At least for me it was a "trap"
Bug report
Bug description:
CPython versions tested on:
3.12 3.14
Operating systems tested on:
macOS