Fix building from source on WSL (#3112)
This commit is contained in:
parent
bfdcfa6a05
commit
2c08ff23c0
2
setup.py
2
setup.py
@ -36,7 +36,7 @@ def _is_neuron() -> bool:
|
|||||||
torch_neuronx_installed = True
|
torch_neuronx_installed = True
|
||||||
try:
|
try:
|
||||||
subprocess.run(["neuron-ls"], capture_output=True, check=True)
|
subprocess.run(["neuron-ls"], capture_output=True, check=True)
|
||||||
except FileNotFoundError:
|
except (FileNotFoundError, PermissionError):
|
||||||
torch_neuronx_installed = False
|
torch_neuronx_installed = False
|
||||||
return torch_neuronx_installed
|
return torch_neuronx_installed
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user