Skip to content

Commit

Permalink
Fix Mac install
Browse files Browse the repository at this point in the history
  • Loading branch information
dnhkng committed Jan 25, 2025
1 parent ac3f1e3 commit 7c55b17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ def main() -> None:
venv_python = ".venv/bin/python"
os.environ["PATH"] = f"{os.path.dirname(venv_python)}:{os.environ['PATH']}"

has_cuda = subprocess.run(["nvcc", "--version"], capture_output=True).returncode == 0
try:
has_cuda = subprocess.run(["nvcc", "--version"], capture_output=True, check=False).returncode == 0
except FileNotFoundError:
has_cuda = False

extras = "[cuda]" if has_cuda else "[cpu]"

# Install project in editable mode
Expand Down

0 comments on commit 7c55b17

Please sign in to comment.