Skip to content

Commit

Permalink
Fix building from source on WSL (#3112)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliencaocao authored Feb 29, 2024
1 parent bfdcfa6 commit 2c08ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _is_neuron() -> bool:
torch_neuronx_installed = True
try:
subprocess.run(["neuron-ls"], capture_output=True, check=True)
except FileNotFoundError:
except (FileNotFoundError, PermissionError):
torch_neuronx_installed = False
return torch_neuronx_installed

Expand Down

0 comments on commit 2c08ff2

Please sign in to comment.