diff options
| author | Enrico Granata <egranata@apple.com> | 2012-04-25 01:26:37 +0000 | 
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2012-04-25 01:26:37 +0000 | 
| commit | 5b4ab4c848f13458e6f3a405df8f1e45eb120d7e (patch) | |
| tree | f61f09d7513bad11547de5fd174004f95a059ba9 | |
| parent | 938aa00795b052e71d6b7e47c93438876dbb5fd0 (diff) | |
| download | bcm5719-llvm-5b4ab4c848f13458e6f3a405df8f1e45eb120d7e.tar.gz bcm5719-llvm-5b4ab4c848f13458e6f3a405df8f1e45eb120d7e.zip  | |
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
llvm-svn: 155525
| -rwxr-xr-x | lldb/scripts/Python/finish-swig-Python-LLDB.sh | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/scripts/Python/finish-swig-Python-LLDB.sh b/lldb/scripts/Python/finish-swig-Python-LLDB.sh index 739d41e8251..c6a46510058 100755 --- a/lldb/scripts/Python/finish-swig-Python-LLDB.sh +++ b/lldb/scripts/Python/finish-swig-Python-LLDB.sh @@ -191,14 +191,12 @@ cp "${CONFIG_BUILD_DIR}/lldb.py" "${framework_python_dir}/__init__.py"  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 @@ ${SRC_ROOT}/examples/summaries/cocoa/NSURL.py"  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  | 

