[Lldb-commits] [lldb] [lldb][docs] Mention "Python Install Manager" in Windows build instructions (PR #188728)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 26 04:30:41 PDT 2026


https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/188728

It was reported to us that this new install manager does not, and apparently will not, have an option to install a debug Python. Which we must have to be able to build lldb in debug mode on Windows.

https://discourse.llvm.org/t/pythonx-d-lib-build-requirement/90285/1

Developers will have to use the "Windows installer", or build thier own, so I've linked to Python's documentation for that.

>From c0611ed24b64d8196e3aa8c839fc7c113e464ff4 Mon Sep 17 00:00:00 2001
From: David Spickett <david.spickett at arm.com>
Date: Thu, 26 Mar 2026 11:25:02 +0000
Subject: [PATCH] [lldb][docs] Mention "Python Install Manager" in Windows
 build instructions

It was reported to us that this new install manager does not,
and apparently will not, have an option to install a debug Python.
Which we must have to be able to build lldb in debug mode on Windows.

https://discourse.llvm.org/t/pythonx-d-lib-build-requirement/90285/1

Developers will have to use the "Windows installer", or build thier
own, so I've linked to Python's documentation for that.
---
 lldb/docs/resources/build.rst | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/lldb/docs/resources/build.rst b/lldb/docs/resources/build.rst
index 7e1928a09c532..f231aac5732a7 100644
--- a/lldb/docs/resources/build.rst
+++ b/lldb/docs/resources/build.rst
@@ -112,10 +112,20 @@ Please follow the steps below if you only want to **build** lldb.
    ``dirname`` are available from your terminal.
 3. Install `make <https://sourceforge.net/projects/ezwinports/files/>`_ and
    verify that it's in your ``PATH``.
-4. Install `Python 3 <https://www.python.org/downloads/windows/>`_ from the
-   GUI installer. If you will be building LLDB in Debug mode, **include the
-   debug libraries** during the install. Make sure ``python`` is added to your
-   ``PATH``.
+4. Install `Python 3 <https://www.python.org/downloads/windows/>`_. Either using
+   the "Windows Installer" or "Python Install Manager". Make sure ``python`` is
+   added to your ``PATH``.
+
+   .. note::
+      Building LLDB in debug mode requires a debug version of Python (because
+      all parts of a debug build must use the debug C runtime).
+
+      If you use the "Windows installer", **include the debug libraries** during
+      the install.
+
+      The "Python Install Manager" has no way to install debug libraries, so you
+      must `build <https://devguide.python.org/getting-started/setup-building/>`_
+      a debug version of Python yourself.
 5. Install `SWIG for Windows <http://www.swig.org/download.html>`_. Make sure
    ``swig`` is added to your ``PATH`` and that ``swig -swiglib`` points to the
    correct directory.



More information about the lldb-commits mailing list