Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-81057: Vendor a Subset of distutils for the c-analyzer Tool#102505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
gh-81057: Vendor a Subset of distutils for the c-analyzer Tool#102505
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ericsnowcurrently commentedMar 7, 2023
Note that none of the Windows-related support actually implements the preprocessor code the c-analyzer needs. Here's what that might look like, though:elijahr/python-autopxd2#40. |
sobolevn left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Note,distutils is also used inpeg_generator:
cpython/Tools/peg_generator/pegen/build.py
Lines 52 to 58 in1f557f9
| importdistutils.log | |
| fromdistutils.coreimportDistribution,Extension | |
| fromdistutils.tests.supportimportfixup_build_ext# type: ignore | |
| fromdistutils.ccompilerimportnew_compiler | |
| fromdistutils.dep_utilimportnewer_group | |
| fromdistutils.sysconfigimportcustomize_compiler |
Will it be convinient to use the single vendored version for both of them?
ericsnowcurrently commentedMar 8, 2023
Thanks for pointing this out. I'll take a look. |
AlexWaygood commentedMar 8, 2023
See these two previous issues that were opened on this topic: |
ericsnowcurrently commentedMar 8, 2023
(See#92584 (comment).) I'm fine with sharing a solution with peg_generator (e.g. a common vendored distutils). In the meantime, I'd like to land this PR. We can remove this vendored distutils when there's a shared solution. |
Uh oh!
There was an error while loading.Please reload this page.
distutils was removed in November. However, the c-analyzer relies on it. To solve that here, we vendor the parts the tool needs so it can be run against 3.12+. (Also seegh-92584.)