From 6bc9207097dff483d1b88635d119ddb77ebb5897 Mon Sep 17 00:00:00 2001 From: Sergiu Bivol <> Date: Sat, 23 Aug 2025 15:42:42 +0100 Subject: [PATCH] Use python2 to build debugpy-python2 --- python3/vimspector/installer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python3/vimspector/installer.py b/python3/vimspector/installer.py index 24083a3e..885f99c8 100644 --- a/python3/vimspector/installer.py +++ b/python3/vimspector/installer.py @@ -403,8 +403,11 @@ def InstallDebugpy( name, root, gadget ): wd = os.getcwd() root = os.path.join( root, 'debugpy-{}'.format( gadget[ 'version' ] ) ) os.chdir( root ) + python = sys.executable + if "-python2" in name: + python = "python2" try: - CheckCall( [ sys.executable, + CheckCall( [ python, 'setup.py', 'build', '--build-platlib', os.path.join( 'build', 'lib' ) ] )