Skip to content

Commit 345452c

Browse files
[windows] fix psutil installation on arm64
1 parent fcebcd3 commit 345452c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utils/build.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,12 @@ function Get-Dependencies {
10261026
Install-PythonWheel "packaging" # For building LLVM 18+
10271027
Install-PythonWheel "distutils" # Required for SWIG support
10281028
if ($Test -contains "lldb") {
1029-
Install-PythonWheel "psutil" # Required for testing LLDB
1029+
if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") {
1030+
Write-Output "Installing 'psutil' ..."
1031+
Invoke-Program -OutNull "$(Get-PythonExecutable)" '-I' -m pip install "psutil==6.1.0" --disable-pip-version-check
1032+
} else {
1033+
Install-PythonWheel "psutil" # Required for testing LLDB
1034+
}
10301035
$env:Path = "$(Get-PythonScriptsPath);$env:Path" # For unit.exe
10311036
Install-PythonWheel "unittest2" # Required for testing LLDB
10321037
}

0 commit comments

Comments
 (0)