Skip to content

Commit 2c08ff2

Browse files
authored
Fix building from source on WSL (#3112)
1 parent bfdcfa6 commit 2c08ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _is_neuron() -> bool:
3636
torch_neuronx_installed = True
3737
try:
3838
subprocess.run(["neuron-ls"], capture_output=True, check=True)
39-
except FileNotFoundError:
39+
except (FileNotFoundError, PermissionError):
4040
torch_neuronx_installed = False
4141
return torch_neuronx_installed
4242

0 commit comments

Comments
 (0)