<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/54337>54337</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            13.0.1 lldb: python module build uses `distutils`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          kloczek
      </td>
    </tr>
</table>

<pre>
    `distutils` is already deprecated https://peps.python.org/pep-0632/ and should no longer be used.
```console
[tkloczko@devel-g2v lldb-13.0.1.src]$ grep -r distutils
CMakeLists.txt:          -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(True, False, ''))"
packages/Python/lldbsuite/test/decorators.py:from distutils.version import LooseVersion
packages/Python/lldbsuite/test/lldbtest.py:from distutils.version import LooseVersion
packages/Python/lldbsuite/test/lldbtest.py:import distutils.spawn
packages/Python/lldbsuite/test/lldbtest.py:        path = distutils.spawn.find_executable("clang", lldb_dir)
test/API/tools/lldb-server/TestAppleSimulatorOSType.py:            from distutils.version import LooseVersion
test/Shell/helper/build.py:        from distutils.version import StrictVersion
test/Shell/helper/build.py:            from distutils.version import LooseVersion
test/Shell/lit.cfg.py:from distutils.spawn import find_executable
third_party/Python/module/pexpect-4.6/setup.py:from distutils.core import setup
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9VF1r2zAU_TX2i7Cx5Xw--CFtCAw6VkjZa5CtG1uLYgl9pM1-_a7kdG2zMug2ZgT6Pufo3uvTKH6uk1nBhXXeCWlxTIQlTBpg_Ew4aAMtc8BJ75y2SbVK6AabBm1zfXa9GnJlunElK2YVxSFhAye2V15yMigi1dCBIQ0Qb4HnSbFOihUSja1Vg1USLqvTG3eQqv1-UMmk4HACmXX0RKTkTVZWeZGXuTVtMl0ndEI6A5pkhryojyC3n9kB7nDN5u7JoWTy88taklAqjloZ93Itt2eLMvaiS6oboo0YXEIX72znHbjd-OqdFA0eejAeEnpLNkzaOEjoPLZlbHRUpFl7YB1YjM19vI2D8CTrhcNbGwcWGTccWmWYUyaEFnXvjTq-UnkCY4UayEX-nVIWvo5rH6IJS2H4H0l-jbhmj38D-JxQzVxPkmp9DZ3vxcB38AStd6zB8qILzEYr2dCFrGCiAt6OCxPyFHVceFb3nwKpUtJeWDMLBsOCswc8stJawlYcvQyZ-rJ9OGt4qyl8H43qhXzbg5TYY6cjY-OF5G_hfw-9dUa07k-x_4F0KVze7rt3iyum5hnpOkMjWC8M32lm3Pl1PRwV9yGJ6DJPGlqXTfIZziw4r99lwh8JnoniqSvXGacpryu-rJYsdcJJqEeHiaURgjL-6WQkJzFcwcIsuXLM1BtZv_XHTrjeNyjjGIvo9Nxl2qhv-ACcCmt9rPrppKrmaV-XwOf7tqywL2ZlsZgC57SZ8IYuJgu-aFLJGpC2RpPEGh7gkUSIUM_TdSpqWlBaVGVZztCHy7ydL5bTYk-XRdE0E5ihocKRCZkHHcG0U1NHSY3vLG7K6Jg_N5m1ohsAIh3iM4_BMHV0ZzikkbqO0n8A4r0YcQ">