From ae68edefc5e0d28b1d03bad1865737167fa5b470 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sun, 19 Jul 2020 01:50:35 -0700 Subject: [PATCH] pipelines: fix Python 3.7/3.8 on macOS --- azure-pipelines.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5f88b76b..3604ced3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -152,9 +152,9 @@ stages: strategy: matrix: Python37: - python.version: "3.7" - # Python38: - # python.version: "3.8" + python.version: "" + Python38: + python.version: "python@3.8" steps: # https://github.com/actions/virtual-environments/issues/664 # - task: UsePythonVersion@0 @@ -163,6 +163,13 @@ stages: - bash: | brew update brew unlink python@2 + if [ "$(python.version)" != "" ]; then + brew upgrade $(python.version) + else + echo "Using Python `python3 --version`" + fi + displayName: "Update brew and Python" + - bash: | brew install \ exempi \ ghostscript \ @@ -170,7 +177,6 @@ stages: leptonica \ openjpeg \ pngquant \ - python \ tesseract \ unpaper displayName: "Install system packages"