File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -367,14 +367,22 @@ def get_python_module_path(options):
367
367
"Python" ,
368
368
"lldb" )
369
369
else :
370
- from distutils .sysconfig import get_python_lib
370
+ if sys .version_info .major == 3 and sys .version_info .minor >= 12 :
371
+ from sysconfig import get_path
372
+
373
+ if options .prefix is not None :
374
+ module_path = get_path ("platlib" , vars = {"prefix" : options .prefix })
375
+ else :
376
+ module_path = get_path ("platlib" )
371
377
372
- if options .prefix is not None :
373
- module_path = get_python_lib (True , False , options .prefix )
374
378
else :
375
- module_path = get_python_lib (True , False )
376
- return os .path .normcase (
377
- os .path .join (module_path , "lldb" ))
379
+ from distutils .sysconfig import get_python_lib
380
+
381
+ if options .prefix is not None :
382
+ module_path = get_python_lib (True , False , options .prefix )
383
+ else :
384
+ module_path = get_python_lib (True , False )
385
+ return os .path .normcase (os .path .join (module_path , "lldb" ))
378
386
379
387
380
388
def main (options ):
You can’t perform that action at this time.
0 commit comments