llvm-project/lldb/source/Plugins/ScriptInterpreter/Python
Haibo Huang 61f471a705 [lldb] Unifying lldb python path
Based on mgorny@'s D67890

There are 3 places where python site-package path is calculated
independently:

1. finishSwigPythonLLDB.py where files are written to site-packages.

2. lldb/scripts/CMakeLists.txt where site-packages are installed.

3. ScriptInterpreterPython.cpp where site-packages are added to
PYTHONPATH.

This change creates the path once and use it everywhere. So that they
will not go out of sync.

Also it provides a chance for cross compiling users to specify the right
path for site-packages.

Subscribers: lldb-commits

Tags: #lldb

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

llvm-svn: 373991
2019-10-07 23:49:01 +00:00
..
CMakeLists.txt [lldb] Unifying lldb python path 2019-10-07 23:49:01 +00:00
PythonDataObjects.cpp [Python] Remove unused variable 2019-10-04 01:38:57 +00:00
PythonDataObjects.h Pass an SBStructuredData to scripted ThreadPlans on use. 2019-10-03 22:50:18 +00:00
PythonExceptionState.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PythonExceptionState.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ScriptInterpreterPython.cpp [lldb] Unifying lldb python path 2019-10-07 23:49:01 +00:00
ScriptInterpreterPython.h [lldb] Unifying lldb python path 2019-10-07 23:49:01 +00:00
ScriptInterpreterPythonImpl.h Pass an SBStructuredData to scripted ThreadPlans on use. 2019-10-03 22:50:18 +00:00
lldb-python.h [Python] Remove Python include from ScriptInterpreterPython.h 2019-03-29 20:17:20 +00:00