Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions lldb/bindings/python/prepare_binding_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,22 @@ def get_python_module_path(options):
"Python",
"lldb")
else:
from distutils.sysconfig import get_python_lib
if sys.version_info.major == 3 and sys.version_info.minor >= 12:
from sysconfig import get_path

if options.prefix is not None:
module_path = get_path("platlib", vars={"prefix": options.prefix})
else:
module_path = get_path("platlib")

if options.prefix is not None:
module_path = get_python_lib(True, False, options.prefix)
else:
module_path = get_python_lib(True, False)
return os.path.normcase(
os.path.join(module_path, "lldb"))
from distutils.sysconfig import get_python_lib

if options.prefix is not None:
module_path = get_python_lib(True, False, options.prefix)
else:
module_path = get_python_lib(True, False)
return os.path.normcase(os.path.join(module_path, "lldb"))


def main(options):
Expand Down