From 66eda1996f1f690b6efd68c6663ad194b2368b52 Mon Sep 17 00:00:00 2001 From: junkmd Date: Mon, 2 Oct 2023 10:36:14 +0900 Subject: [PATCH] fix `InstallComtypes` --- ci/install.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ci/install.ps1 b/ci/install.ps1 index 58ac95102..95af2a2b5 100644 --- a/ci/install.ps1 +++ b/ci/install.ps1 @@ -85,9 +85,9 @@ function UpdateConda ($python_home) { } function InstallComtypes ($python_home) { - $pip_path = $python_home + "\Scripts\pip.exe" - $args = "install comtypes" - Start-Process -FilePath "$pip_path" -ArgumentList $args -Wait -Passthru + $python_path = $python_home + "\python.exe" + $args = "pip install comtypes" + Start-Process -FilePath "$python_path" -ArgumentList $args -Wait -Passthru } function main () { @@ -110,6 +110,9 @@ function main () { #InstallMiniconda $env:PYTHON_VERSION $env:PYTHON_ARCH $env:PYTHON #UpdateConda $env:PYTHON #InstallCondaPackages $env:PYTHON "pywin32 Pillow coverage nose" + # if ($env:UIA_SUPPORT -eq "YES") { + # InstallCondaPackages $env:PYTHON "comtypes" + # } } main