Skip to content

Commit 101f59f

Browse files
committed
restore
1 parent a665eaf commit 101f59f

File tree

2 files changed

+6
-37
lines changed

2 files changed

+6
-37
lines changed

install_requirements.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,8 @@ def install_requirements(use_pytorch_nightly):
7777
"-r",
7878
"requirements-dev.txt",
7979
*TORCH_PACKAGE,
80-
"--pre",
81-
"--index-url",
82-
torch_url,
8380
"--extra-index-url",
84-
"https://pypi.org/simple",
81+
torch_url,
8582
],
8683
check=True,
8784
)
@@ -143,11 +140,8 @@ def install_optional_example_requirements(use_pytorch_nightly):
143140
"pip",
144141
"install",
145142
*DOMAIN_LIBRARIES,
146-
"--pre",
147-
"--index-url",
148-
torch_url,
149143
"--extra-index-url",
150-
"https://pypi.org/simple",
144+
torch_url,
151145
],
152146
check=True,
153147
)
@@ -161,11 +155,8 @@ def install_optional_example_requirements(use_pytorch_nightly):
161155
"install",
162156
"-r",
163157
"requirements-examples.txt",
164-
"--pre",
165-
"--index-url",
166-
torch_url,
167158
"--extra-index-url",
168-
"https://pypi.org/simple",
159+
torch_url,
169160
"--upgrade-strategy",
170161
"only-if-needed",
171162
],
@@ -175,8 +166,6 @@ def install_optional_example_requirements(use_pytorch_nightly):
175166

176167
def main(args):
177168
parser = argparse.ArgumentParser()
178-
print("NIGHTLY_VERSION: ", NIGHTLY_VERSION)
179-
print("TORCH_VERSION: ", TORCH_VERSION)
180169
parser.add_argument(
181170
"--use-pt-pinned-commit",
182171
action="store_true",

setup.py

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)