@@ -464,23 +464,12 @@ def run(self):
464464 return
465465
466466 try :
467- import sys , traceback
468-
469- logging .info (f"Attempting to import Qualcomm backend..." )
470- logging .debug (f"sys.path = { sys .path } " )
471-
472467 # Following code is for building the Qualcomm backend.
473- logging .info ("Trying to import Qualcomm backend SDK helpers" )
474- logging .debug (f"sys.path = { sys .path } " )
475- logging .debug (f"Current working directory = { os .getcwd ()} " )
476-
477468 from backends .qualcomm .scripts .download_qnn_sdk import (
478469 _download_qnn_sdk ,
479470 is_linux_x86 ,
480471 )
481472
482- logging .info ("Qualcomm backend imports succeeded" )
483-
484473 if is_linux_x86 ():
485474 os .environ ["EXECUTORCH_BUILDING_WHEEL" ] = "1"
486475
@@ -504,11 +493,6 @@ def run(self):
504493 # Run build.sh with SDK path exported
505494 env = dict (** os .environ )
506495 env ["QNN_SDK_ROOT" ] = str (sdk_path )
507- logging .info (
508- f"Running build.sh: { build_sh } with QNN_SDK_ROOT={ sdk_path } "
509- )
510- logging .info (f"Environment keys: { list (env .keys ())} " )
511-
512496 subprocess .check_call ([str (build_sh ), "--skip_aarch64" ], env = env )
513497
514498 # Copy the main .so into the wheel package
@@ -546,13 +530,9 @@ def run(self):
546530 self .copy_file (str (so_src ), str (so_dst ))
547531 logging .info (f"Copied Qualcomm backend: { so_src } -> { so_dst } " )
548532
549- except ImportError as e :
550- logging .error ("Fail to build Qualcomm backend: ImportError" )
551- logging .error ("Message: %s" , e )
552- logging .error ("sys.path at failure: %s" , sys .path )
553- logging .error ("cwd at failure: %s" , os .getcwd ())
554- traceback .print_exc ()
555- raise
533+ except ImportError :
534+ logging .error ("Fail to build Qualcomm backend" )
535+ logging .exception ("Import error" )
556536
557537 if self .editable_mode :
558538 self ._ran_build = True
0 commit comments