Skip to content

Commit 0f01dc9

Browse files
committed
mitigate qualcomm build issue
1 parent b067db0 commit 0f01dc9

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

setup.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -465,13 +465,11 @@ def run(self):
465465

466466
try:
467467
# Following code is for building the Qualcomm backend.
468-
from backends.qualcomm.scripts.download_qnn_sdk import (
469-
_download_qnn_sdk,
470-
is_linux_x86,
471-
)
468+
from backends.qualcomm.scripts.download_qnn_sdk import is_linux_x86
472469

473470
if is_linux_x86():
474471
os.environ["EXECUTORCH_BUILDING_WHEEL"] = "1"
472+
from backends.qualcomm.scripts.download_qnn_sdk import _download_qnn_sdk
475473

476474
with tempfile.TemporaryDirectory() as tmpdir:
477475
tmp_path = Path(tmpdir)
@@ -537,8 +535,8 @@ def run(self):
537535
self.copy_file(str(so_src), str(so_dst))
538536
logging.info(f"Copied Qualcomm backend: {so_src} -> {so_dst}")
539537

540-
except ImportError:
541-
logging.error("Fail to build Qualcomm backend")
538+
except ImportError as e:
539+
logging.error(f"Fail to build Qualcomm backend: {e}")
542540
logging.exception("Import error")
543541

544542
if self.editable_mode:

0 commit comments

Comments
 (0)