Skip to content

Commit

Permalink
Use arm64 pip platform tag for Apple Silicon
Browse files Browse the repository at this point in the history
Also up min chromium version to 10.11 to match current google chrome minimum.
  • Loading branch information
jonmmease committed Feb 15, 2021
1 parent e1982cf commit 672b9fa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions repos/kaleido/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,13 @@ def run(self):
elif arch == "arm":
cmd_obj.plat_name = "manylinux2014-armv7l"

# Set macos platform to 10.10 to match chromium build target (See build/config/mac/mac_sdk.gni)
# rather than Python environment
# Set macos platform to 10.11 rather than Python environment
elif cmd_obj.plat_name.startswith("macosx"):
cmd_obj.plat_name = "macosx-10.10-x86_64"
arch = os.environ.get("KALEIDO_ARCH", "x64")
if arch == "x64":
cmd_obj.plat_name = "macosx-10.11-x86_64"
elif arch == "arm64":
cmd_obj.plat_name = "macosx-10.11-arm64"

cmd_obj.python_tag = 'py2.py3'
self.run_command("bdist_wheel")
Expand Down

0 comments on commit 672b9fa

Please sign in to comment.