[Lldb-commits] [PATCH] D68910: python path should be platform-dependent

Haibo Huang via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 15 14:41:53 PDT 2019


hhb added a comment.

  Python 3.6.8 (default, Apr 30 2019, 13:27:23) [GCC] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import distutils.sysconfig
  >>> print(distutils.sysconfig.get_python_lib(True, False, ''))
  lib64/python3.6/site-packages
  >>> print(distutils.sysconfig.get_python_lib(True, False, '/abc'))
  /abc/lib64/python3.6/site-packages
  >>> print(distutils.sysconfig.get_python_lib(True, False))
  /usr/lib64/python3.6/site-packages
  >>> print(distutils.sysconfig.get_python_lib(False, False, ''))
  lib/python3.6/site-packages
  >>> print(distutils.sysconfig.get_python_lib(False, False, '/abc'))
  /abc/lib/python3.6/site-packages
  >>> print(distutils.sysconfig.get_python_lib(False, False))
  /usr/lib/python3.6/site-packages

This is interesting...


Repository:
  rLLDB LLDB

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68910/new/

https://reviews.llvm.org/D68910





More information about the lldb-commits mailing list