Skip to content

Commit 6ff163b

Browse files
[windows] fix psutil installation on arm64
1 parent 69c5a02 commit 6ff163b

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
@@ -1025,7 +1025,12 @@ function Get-Dependencies {
10251025
Install-PythonWheel "packaging" # For building LLVM 18+
10261026
Install-PythonWheel "distutils" # Required for SWIG support
10271027
if ($Test -contains "lldb") {
1028-
Install-PythonWheel "psutil" # Required for testing LLDB
1028+
if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") {
1029+
Write-Output "Installing 'psutil' ..."
1030+
Invoke-Program -OutNull "$(Get-PythonExecutable)" '-I' -m pip install "psutil==6.1.0" --disable-pip-version-check
1031+
} else {
1032+
Install-PythonWheel "psutil" # Required for testing LLDB
1033+
}
10291034
$env:Path = "$(Get-PythonScriptsPath);$env:Path" # For unit.exe
10301035
Install-PythonWheel "unittest2" # Required for testing LLDB
10311036
}

0 commit comments

Comments
 (0)