From d62378b45314c2688deef7333ae16fcc9863d881 Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Fri, 29 Oct 2021 20:55:58 +0300 Subject: [PATCH] [ci] Temporary pin freetype version at Windows CI (#4747) * Update test_windows.ps1 * Update .appveyor.yml * Update .appveyor.yml --- .ci/test_windows.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/test_windows.ps1 b/.ci/test_windows.ps1 index 51488145dc17..b97b56192e31 100644 --- a/.ci/test_windows.ps1 +++ b/.ci/test_windows.ps1 @@ -106,7 +106,7 @@ if (($env:TASK -eq "regular") -or (($env:APPVEYOR -eq "true") -and ($env:TASK -e cd $env:BUILD_SOURCESDIRECTORY/examples/python-guide @("import matplotlib", "matplotlib.use('Agg')") + (Get-Content "plot_example.py") | Set-Content "plot_example.py" (Get-Content "plot_example.py").replace('graph.render(view=True)', 'graph.render(view=False)') | Set-Content "plot_example.py" # prevent interactive window mode - conda install -q -y -n $env:CONDA_ENV h5py ipywidgets notebook + conda install -q -y -n $env:CONDA_ENV "freetype=2.10.4" h5py ipywidgets notebook foreach ($file in @(Get-ChildItem *.py)) { @("import sys, warnings", "warnings.showwarning = lambda message, category, filename, lineno, file=None, line=None: sys.stdout.write(warnings.formatwarning(message, category, filename, lineno, line))") + (Get-Content $file) | Set-Content $file python $file ; Check-Output $?