Skip to content

Commit 003fd15

Browse files
eserscoralex-spacemit
authored andcommitted
Do not run auditwheel on QNN whls (microsoft#26837)
### Description [Change 26634](microsoft#26634) added the qnn variant to the audit wheel process, but the qnn libraries do not pass audit repair due to a dependency on libc++. Continue to not audit qnn on x86_64 and rely on the correct dependencies being available for the user. ### Motivation and Context Fixes build packaging pipeline
1 parent 92f1b33 commit 003fd15

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,12 @@ def run(self):
316316
else:
317317
pass
318318

319+
# qnn links libc++ rather than libstdc++ for its x86_64 dependencies which we currently do not
320+
# support for many_linux. This is not the case for other platforms.
321+
qnn_run_audit = environ.get("AUDITWHEEL_ARCH", "x86_64") != "x86_64"
322+
319323
_bdist_wheel.run(self)
320-
if is_manylinux and not disable_auditwheel_repair and not is_openvino:
324+
if is_manylinux and not disable_auditwheel_repair and not is_openvino and (not is_qnn or qnn_run_audit):
321325
assert self.dist_dir is not None
322326
file = glob(path.join(self.dist_dir, "*linux*.whl"))[0]
323327
logger.info("repairing %s for manylinux1", file)

0 commit comments

Comments
 (0)