Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions scripts/curl_install_pypi/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import shutil
import subprocess
import hashlib
import distro

@haroldrandom haroldrandom Nov 18, 2019

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Don't need to add dependency requirement and update *.py3.*.txt and setup.py?
  2. According to https://pypi.org/project/distro/ , "Distro currently supports Linux and BSD based systems but Windows and OS X support is also planned." What about Windows platform?

try:
# Attempt to load python 3 module
from urllib.request import urlopen
Expand All @@ -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'))
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/azure-cli/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down