[lldb/python] Fix scripted_platform python module creation
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Thu, 2 Feb 2023 00:33:53 +0000 (16:33 -0800)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Thu, 2 Feb 2023 23:22:52 +0000 (15:22 -0800)
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@gmail.com>
lldb/bindings/python/CMakeLists.txt

index 528f9f4..2cc3ad1 100644 (file)
@@ -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)