Skip to content

Commit

Permalink
add the condition to appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Oct 2, 2023
1 parent 66eda19 commit 03a404d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ install:
# pip will build them from source using the MSVC compiler matching the
# target Python version and architecture
- "%CMD_IN_ENV% pip install -r dev-requirements.txt"
- "IF %UIA_SUPPORT% == \"YES\" pip install comtypes"

# Enable desktop (for correct screenshots).
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-desktop.ps1'))
Expand Down
15 changes: 3 additions & 12 deletions ci/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ function UpdateConda ($python_home) {
Start-Process -FilePath "$conda_path" -ArgumentList $args -Wait -Passthru
}

function InstallComtypes ($python_home) {
$python_path = $python_home + "\python.exe"
$args = "pip install comtypes"
Start-Process -FilePath "$python_path" -ArgumentList $args -Wait -Passthru
}

function main () {
try {
$CurrentResolution = Get-DisplayResolution
Expand All @@ -104,15 +98,12 @@ function main () {
Write-Host "PYTHON_ARCH=" $env:PYTHON_ARCH
Write-Host "UIA_SUPPORT=" $env:UIA_SUPPORT

if ($env:UIA_SUPPORT -eq "YES") {
InstallComtypes $env:PYTHON
}
#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"
# }
#if ($env:UIA_SUPPORT -eq "YES") {
# InstallCondaPackages $env:PYTHON "comtypes"
#}
}

main

0 comments on commit 03a404d

Please sign in to comment.