]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-81057: Vendor a Subset of distutils for the c-analyzer Tool (gh-102505)
authorEric Snow <ericsnowcurrently@gmail.com>
Thu, 9 Mar 2023 16:50:33 +0000 (09:50 -0700)
committerGitHub <noreply@github.com>
Thu, 9 Mar 2023 16:50:33 +0000 (09:50 -0700)
commitca066bdbed85094a9c4d9930823ce3587807db48
treeaee15b512dd2703c210112ebd84dc661b835cab8
parentcf6e7c5e551b3513817d6a77ba88253dc8473298
gh-81057: Vendor a Subset of distutils for the c-analyzer Tool (gh-102505)

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 see gh-92584.)

Note that we may end up removing this code later in favor of a solution in common with the peg_generator tool (which also relies on distutils).  At the least, the copy here makes sure the c-analyzer tool works on 3.12+ in the meantime.
15 files changed:
Tools/c-analyzer/distutils/README [new file with mode: 0644]
Tools/c-analyzer/distutils/__init__.py [new file with mode: 0644]
Tools/c-analyzer/distutils/_msvccompiler.py [new file with mode: 0644]
Tools/c-analyzer/distutils/bcppcompiler.py [new file with mode: 0644]
Tools/c-analyzer/distutils/ccompiler.py [new file with mode: 0644]
Tools/c-analyzer/distutils/cygwinccompiler.py [new file with mode: 0644]
Tools/c-analyzer/distutils/debug.py [new file with mode: 0644]
Tools/c-analyzer/distutils/dep_util.py [new file with mode: 0644]
Tools/c-analyzer/distutils/errors.py [new file with mode: 0644]
Tools/c-analyzer/distutils/log.py [new file with mode: 0644]
Tools/c-analyzer/distutils/msvc9compiler.py [new file with mode: 0644]
Tools/c-analyzer/distutils/msvccompiler.py [new file with mode: 0644]
Tools/c-analyzer/distutils/spawn.py [new file with mode: 0644]
Tools/c-analyzer/distutils/unixccompiler.py [new file with mode: 0644]
Tools/c-analyzer/distutils/util.py [new file with mode: 0644]