Skip to content

Commit

Permalink
upgrage default python version to 3.7.9
Browse files Browse the repository at this point in the history
  • Loading branch information
halcarleton committed Jan 21, 2022
1 parent 102025c commit 7f7f9c9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/bundled_installer
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# - the latest (or close to it) Python
# - the latest version of the EBCLI
export PYTHON_VERSION="3.7.2"
export PYTHON_VERSION="3.7.9"
export PYENV_ROOT=${PYENV_ROOT:-"$HOME/.pyenv"}
export PYENV_BIN="$PYENV_ROOT/versions/$PYTHON_VERSION/bin"
BASH_PROFILE="$HOME/.bash_profile"
Expand Down
2 changes: 1 addition & 1 deletion scripts/ebcli_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
python /<location to script>/bundled_installer.py
# specify Python executable
python scripts/bundled_installer.py -p ~/.pyenv/versions/3.7.2/bin/python
python scripts/bundled_installer.py -p ~/.pyenv/versions/3.7.9/bin/python
To view help text:
Expand Down
12 changes: 6 additions & 6 deletions scripts/install-python.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$PythonInstaller = "$PSScriptRoot\python3.7.3.exe"
$PythonInstaller = "$PSScriptRoot\python3.7.9.exe"
$StepNumber = 1

function Write-StepTitle([String] $StepMessage) {
Expand All @@ -13,17 +13,17 @@ function Write-StepTitle([String] $StepMessage) {
}

function Get-PythonExecutable {
Write-StepTitle "Looking for existing Python 3.7.3 installation."
return Get-WmiObject -Namespace "root/cimv2" -Class Win32_Product -Filter "Name Like 'Python 3.7.3 Executables%'"
Write-StepTitle "Looking for existing Python 3.7.9 installation."
return Get-WmiObject -Namespace "root/cimv2" -Class Win32_Product -Filter "Name Like 'Python 3.7.9 Executables%'"
}

function Get-PythonInstallationTarget {
if ([Environment]::Is64BitOperatingSystem) {
Write-StepTitle "Downloading x64 version of Python."
return "https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64-webinstall.exe"
return "https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64-webinstall.exe"
} else {
Write-StepTitle "Downloading x86 version of Python."
return "https://www.python.org/ftp/python/3.7.3/python-3.7.3-webinstall.exe"
return "https://www.python.org/ftp/python/3.7.9/python-3.7.9-webinstall.exe"
}
}

Expand Down Expand Up @@ -79,6 +79,6 @@ if ($PythonExecutable.count -eq 0) {
Update-UserEnvironmentPath
Remove-Item $PythonInstaller
} else {
Write-Host "Python 3.7.3 is already installed." -ForegroundColor Green
Write-Host "Python 3.7.9 is already installed." -ForegroundColor Green
}
Install-Virtualenv
2 changes: 1 addition & 1 deletion scripts/python_installer
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
BASH_PROFILE="$HOME/.bash_profile"
ZSHENV="$HOME/.zshrc"
COMMAND_LINE_ARGS=$*
PYTHON_VERSION=${PYTHON_VERSION:="3.7.2"}
PYTHON_VERSION=${PYTHON_VERSION:="3.7.9"}
SUPPRESS_PATH_EXPORT_MESSAGE=${SUPPRESS_PATH_EXPORT_MESSAGE:=false}
PYENV_ROOT=${PYENV_ROOT:="$HOME/.pyenv"}
export PYTHON_ALREADY_IN_PATH=false
Expand Down

0 comments on commit 7f7f9c9

Please sign in to comment.