diff --git a/scripts/curl_install_pypi/install.py b/scripts/curl_install_pypi/install.py index a200dfa8556..bf7171d2f96 100644 --- a/scripts/curl_install_pypi/install.py +++ b/scripts/curl_install_pypi/install.py @@ -24,6 +24,7 @@ import shutil import subprocess import hashlib +import distro try: # Attempt to load python 3 module from urllib.request import urlopen @@ -42,10 +43,10 @@ {install_dir}/bin/python -m azure.cli "$@" """ -VIRTUALENV_VERSION = '15.0.0' +VIRTUALENV_VERSION = '16.7.7' VIRTUALENV_ARCHIVE = 'virtualenv-'+VIRTUALENV_VERSION+'.tar.gz' VIRTUALENV_DOWNLOAD_URL = 'https://pypi.python.org/packages/source/v/virtualenv/'+VIRTUALENV_ARCHIVE -VIRTUALENV_ARCHIVE_SHA256 = '70d63fb7e949d07aeb37f6ecc94e8b60671edb15b890aa86dba5dfaf2225dc19' +VIRTUALENV_ARCHIVE_SHA256 = 'd257bb3773e48cac60e475a19b608996c73f4d333b3ba2e4e57d5ac6134e0136' DEFAULT_INSTALL_DIR = os.path.expanduser(os.path.join('~', 'lib', 'azure-cli')) DEFAULT_EXEC_DIR = os.path.expanduser(os.path.join('~', 'bin')) @@ -306,7 +307,7 @@ def _native_dependencies_for_dist(verify_cmd_args, install_cmd_args, dep_list): raise CLIInstallError('Please install the native dependencies and try again.') def verify_native_dependencies(): - distname, version, _ = platform.linux_distribution() + distname, version, _ = distro.linux_distribution() if not distname: # There's no distribution name so can't determine native dependencies required / or they may not be needed like on OS X return diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index dc8cacbd69c..e411c632032 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -3,6 +3,9 @@ Release History =============== +**Install** +* Install script support python 3.8 + **Azure Red Hat OpenShift** * Add `--workspace-resource-id` flag to allow creation of Azure Red Hat Openshift cluster with monitoring