Skip to content

Commit

Permalink
move installing comtypes command
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Oct 8, 2023
1 parent 4d87194 commit 70ee60b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ install:
# compiled extensions and are not provided as pre-built wheel packages,
# pip will build them from source using the MSVC compiler matching the
# target Python version and architecture
- "%PYTHON%\\python.exe -m pip install --upgrade pip"
- "%CMD_IN_ENV% pip install -r dev-requirements.txt"
- "%CMD_IN_ENV% python -c \"import os,subprocess; os.environ.get('UIA_SUPPORT')=='YES' and subprocess.check_output(['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
9 changes: 0 additions & 9 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) {
$pip_path = $python_home + "\Scripts\pip.exe"
$args = "install comtypes"
Start-Process -FilePath "$pip_path" -ArgumentList $args -Wait -Passthru
}

function main () {
try {
$CurrentResolution = Get-DisplayResolution
Expand All @@ -104,9 +98,6 @@ 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"
Expand Down

0 comments on commit 70ee60b

Please sign in to comment.