[Lldb-commits] [lldb] 35ef899 - [lldb/python] Fix scripted_platform python module creation

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 2 15:23:05 PST 2023


Author: Med Ismail Bennani
Date: 2023-02-02T15:22:52-08:00
New Revision: 35ef899f94eb3c52b9ba5671be606d755053d90e

URL: https://github.com/llvm/llvm-project/commit/35ef899f94eb3c52b9ba5671be606d755053d90e
DIFF: https://github.com/llvm/llvm-project/commit/35ef899f94eb3c52b9ba5671be606d755053d90e.diff

LOG: [lldb/python] Fix scripted_platform python module creation

This patch should fix the creation and addition of the `scripted_platform`
python module into the `lldb.plugins` module.

Previously, we were creating the `plugins` submodule, each time with a
different source file (either `scripted_process` or `scripted_platform`).

The removes the redundant `create_python_package` call and group both
python source files toghether.

Differential Revision: https://reviews.llvm.org/D143122

Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>

Added: 
    

Modified: 
    lldb/bindings/python/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lldb/bindings/python/CMakeLists.txt b/lldb/bindings/python/CMakeLists.txt
index 528f9f47f17a8..2cc3ad1bb98b7 100644
--- a/lldb/bindings/python/CMakeLists.txt
+++ b/lldb/bindings/python/CMakeLists.txt
@@ -103,13 +103,7 @@ function(finish_swig_python swig_target lldb_python_bindings_dir lldb_python_tar
     ${lldb_python_target_dir}
     "plugins"
     FILES
-    "${LLDB_SOURCE_DIR}/examples/python/scripted_process/scripted_process.py")
-
-  create_python_package(
-    ${swig_target}
-    ${lldb_python_target_dir}
-    "plugins"
-    FILES
+    "${LLDB_SOURCE_DIR}/examples/python/scripted_process/scripted_process.py"
     "${LLDB_SOURCE_DIR}/examples/python/scripted_process/scripted_platform.py")
 
   if(APPLE)


        


More information about the lldb-commits mailing list