[Lldb-commits] [lldb] r155525 - /lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh

Enrico Granata egranata at apple.com
Tue Apr 24 18:26:37 PDT 2012


Author: enrico
Date: Tue Apr 24 20:26:37 2012
New Revision: 155525

URL: http://llvm.org/viewvc/llvm-project?rev=155525&view=rev
Log:
Ensure that lldb/runtime is not a dead point in the Python package hierarchy - This is a first preliminary step in fixing data formatters after Greg's changes to the Python resources on-disk layout

Modified:
    lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh

Modified: lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh?rev=155525&r1=155524&r2=155525&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh (original)
+++ lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh Tue Apr 24 20:26:37 2012
@@ -191,14 +191,12 @@
 package_files="${SRC_ROOT}/source/Interpreter/embedded_interpreter.py"
 create_python_package "" "${package_files}"
 
-
 # lldb/formatters/cpp
 package_files="${SRC_ROOT}/examples/synthetic/gnu_libstdcpp.py
 ${SRC_ROOT}/examples/synthetic/libcxx.py"
 create_python_package "/formatters/cpp" "${package_files}"
 
 # lldb/formatters/objc
-
 package_files="${SRC_ROOT}/examples/summaries/cocoa/Selector.py
 ${SRC_ROOT}/examples/summaries/objc.py
 ${SRC_ROOT}/examples/summaries/cocoa/Class.py
@@ -221,11 +219,17 @@
 create_python_package "/formatters/objc" "${package_files}"
 
 
+# make an empty __init__.py in lldb/runtime
+# this is required for Python to recognize lldb.runtime as a valid package
+# (and hence, lldb.runtime.objc as a valid contained package)
+create_python_package "/runtime" ""
+
 # lldb/runtime/objc
 package_files="${SRC_ROOT}/examples/summaries/cocoa/objc_runtime.py"
 create_python_package "/runtime/objc" "${package_files}"
 
 # lldb/formatters
+# having these files copied here ensures that lldb/formatters is a valid package itself
 package_files="${SRC_ROOT}/examples/summaries/cocoa/cache.py
 ${SRC_ROOT}/examples/summaries/cocoa/metrics.py
 ${SRC_ROOT}/examples/summaries/cocoa/attrib_fromdict.py





More information about the lldb-commits mailing list