[Lldb-commits] [PATCH] D67583: Fix swig python package path
Haibo Huang via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 20 11:00:58 PDT 2019
hhb added a comment.
In D67583#1675889 <https://reviews.llvm.org/D67583#1675889>, @ZeGentzy wrote:
> In D67583#1675714 <https://reviews.llvm.org/D67583#1675714>, @hhb wrote:
>
> > My theory now is that your python has a different implementation of get_python_lib(). After all we should not guess what python would do. I'm making a change.
> > If you still interested in testing that, you can fix the path in a.py...
>
>
> Oh, derp, I completely missed that. I get `(True, '/src/out/./lib/python3.7/site-packages/lldb', '')` for python and `(True, '/src/out/./lib/python2.7/site-packages/lldb', '')` for python2.
>
> EDIT:
>
> $ cat a.py
> import sys
> sys.path.append('/home/gentz/Documents/aur/gfx/backups/second/llvm-git-gentz/llvm-git-gentz/src/llvm-project32/lldb/scripts/Python')
> import finishSwigPythonLLDB
> vDictArgs = {"--srcRoot": "/src/llvm-project/lldb",
> "--targetDir": "/src/out/./lib32",
> "--cfgBldDir": "/src/out/tools/lldb/scripts",
> "--prefix": "/src/out",
> "--cmakeBuildConfiguration": ".",
> "--lldbLibDir": "lib32",
> "-m": None,
> }
> print(finishSwigPythonLLDB.get_framework_python_dir(vDictArgs))
>
That's really... weird... I don't know how your files end up in the lib32 directory. Anyway this change is reverted in https://reviews.llvm.org/D67781.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67583/new/
https://reviews.llvm.org/D67583
More information about the lldb-commits
mailing list