Skip to content

17.0.4: LLVM uses deprecated distutils python module #54337

Open
@kloczek

Description

@kloczek

distutils is already deprecated https://peps.python.org/pep-0632/ and should no longer be used.

[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions