Skip to content

Commit 7b9de5b

Browse files
authored
Do not run auditwheel on QNN whls (#26837)
### Description [Change 26634](#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 2f0eb77 commit 7b9de5b

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
@@ -297,8 +297,12 @@ def run(self):
297297
else:
298298
pass
299299

300+
# qnn links libc++ rather than libstdc++ for its x86_64 dependencies which we currently do not
301+
# support for many_linux. This is not the case for other platforms.
302+
qnn_run_audit = environ.get("AUDITWHEEL_ARCH", "x86_64") != "x86_64"
303+
300304
_bdist_wheel.run(self)
301-
if is_manylinux and not disable_auditwheel_repair and not is_openvino:
305+
if is_manylinux and not disable_auditwheel_repair and not is_openvino and (not is_qnn or qnn_run_audit):
302306
assert self.dist_dir is not None
303307
file = glob(path.join(self.dist_dir, "*linux*.whl"))[0]
304308
logger.info("repairing %s for manylinux1", file)

0 commit comments

Comments
 (0)