diff --git a/Dockerfile b/Dockerfile index e57ec71c378..ca6888a6f25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,9 @@ # Licensed under the MIT License. See License.txt in the project root for license information. #--------------------------------------------------------------------------------------------- -ARG PYTHON_VERSION="3.10.4" +ARG PYTHON_VERSION="3.10" -FROM python:${PYTHON_VERSION}-alpine3.15 +FROM python:${PYTHON_VERSION}-alpine ARG CLI_VERSION diff --git a/build_scripts/windows/scripts/build.cmd b/build_scripts/windows/scripts/build.cmd index 85497d87826..5013623517c 100644 --- a/build_scripts/windows/scripts/build.cmd +++ b/build_scripts/windows/scripts/build.cmd @@ -13,10 +13,10 @@ if "%CLI_VERSION%"=="" ( echo Please set the CLI_VERSION environment variable, e.g. 2.0.13 goto ERROR ) -set PYTHON_VERSION=3.10.4 +set PYTHON_VERSION=3.10.5 set WIX_DOWNLOAD_URL="https://azurecliprod.blob.core.windows.net/msi/wix310-binaries-mirror.zip" -set PYTHON_DOWNLOAD_URL="https://www.python.org/ftp/python/3.10.4/python-3.10.4-embed-win32.zip" +set PYTHON_DOWNLOAD_URL="https://www.python.org/ftp/python/%PYTHON_VERSION%/python-%PYTHON_VERSION%-embed-win32.zip" set PROPAGATE_ENV_CHANGE_DOWNLOAD_URL="https://azurecliprod.blob.core.windows.net/util/propagate_env_change.zip" REM https://pip.pypa.io/en/stable/installation/#get-pip-py @@ -117,6 +117,9 @@ for %%a in (%CLI_SRC%\azure-cli %CLI_SRC%\azure-cli-core %CLI_SRC%\azure-cli-tel ) %BUILDING_DIR%\python.exe -m pip install --no-warn-script-location --requirement %CLI_SRC%\azure-cli\requirements.py3.windows.txt +REM Check azure.cli can be executed. This also prints the Python version. +%BUILDING_DIR%\python.exe -m azure.cli --version + if %errorlevel% neq 0 goto ERROR pushd %BUILDING_DIR% diff --git a/scripts/release/debian/build.sh b/scripts/release/debian/build.sh index d7105ae10eb..0c344bb0c54 100755 --- a/scripts/release/debian/build.sh +++ b/scripts/release/debian/build.sh @@ -15,7 +15,7 @@ set -exv ls -Rl /mnt/artifacts WORKDIR=`cd $(dirname $0); cd ../../../; pwd` -PYTHON_VERSION="3.10.4" +PYTHON_VERSION="3.10.5" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Update APT packages