Skip to content

Commit 051142d

Browse files
author
Sergiu Bivol
committed
Use python2 to build debugpy-python2
1 parent a1ee02d commit 051142d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python3/vimspector/installer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,11 @@ def InstallDebugpy( name, root, gadget ):
403403
wd = os.getcwd()
404404
root = os.path.join( root, 'debugpy-{}'.format( gadget[ 'version' ] ) )
405405
os.chdir( root )
406+
python = sys.executable
407+
if "-python2" in name:
408+
python = "python2"
406409
try:
407-
CheckCall( [ sys.executable,
410+
CheckCall( [ python,
408411
'setup.py',
409412
'build',
410413
'--build-platlib', os.path.join( 'build', 'lib' ) ] )

0 commit comments

Comments
 (0)