mgorny marked an inline comment as done. mgorny added a comment. I think it will be also nice to eliminate get_relative_lib_dir.py long term.
================ Comment at: lldb/scripts/CMakeLists.txt:45-50 + execute_process( + COMMAND ${PYTHON_EXECUTABLE} + -c "import distutils.sysconfig, sys; print(distutils.sysconfig.get_python_lib(True, False, sys.argv[1]))" + ${CMAKE_BINARY_DIR} + OUTPUT_VARIABLE SWIG_PYTHON_DIR + OUTPUT_STRIP_TRAILING_WHITESPACE) ---------------- labath wrote: > For my own education, is it possible that the result of the `get_python_lib` > call will fundamentally differ depending on the value of the third argument. > I.e., is there any case where `${SWIG_PYTHON_DIR}` will be different from > `${CMAKE_BINARY_DIR}/${SWIG_INSTALL_DIR}` ? The former will be an absolute path while the latter is just the relative path. But if you mean whether they could have a different tail: I don't think so, at least with CPython. PyPy had some nasty logic, so I'd have to check if we ever decided to support that. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D67890/new/ https://reviews.llvm.org/D67890 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits