Skip to content

Commit

Permalink
Disallow install on arm+mac
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian committed Jan 30, 2024
1 parent 888f378 commit d3dbf1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/viztracer/viztracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import builtins
import multiprocessing
import os
import platform
import signal
import sys
from typing import Any, Callable, Dict, Optional, Sequence, Tuple, Union
Expand Down Expand Up @@ -135,8 +136,9 @@ def register_global(self) -> None:
builtins.__dict__["__viz_tracer__"] = self

def install(self) -> None:
if sys.platform == "win32":
print("remote install is not supported on Windows!")
if (sys.platform == "win32"
or (sys.platform == "darwin" and "arm" in platform.processor())):
print("remote install is not supported on this platform!")
sys.exit(1)

def signal_start(signum, frame):
Expand Down

0 comments on commit d3dbf1e

Please sign in to comment.