From 2d0d258403faa417aa1c6d445e88db86e2c7ffb5 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Thu, 19 Oct 2023 11:10:53 -0700 Subject: [PATCH] Delete arm64 only file in Mac wheel Fixes https://github.com/google/mediapipe/issues/4888#issuecomment-1768861583 PiperOrigin-RevId: 574938905 --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index f080503fe..b5b75b73c 100644 --- a/setup.py +++ b/setup.py @@ -404,6 +404,8 @@ class BuildExtension(build_ext.build_ext): arm64_name, ] _invoke_shell_command(lipo_command) + # Delete the arm64 file (the x86 file was overwritten by lipo) + _invoke_shell_command(['rm', arm64_name]) else: for ext in self.extensions: self._build_binary(ext)