mirror of
https://github.com/actions/python-versions.git
synced 2025-12-14 06:26:45 +00:00
Remove EOL Python code, set 3.9 as base, add 3.14 stdlib module (#317)
* Remove redundant Python 2 code * Use Python 3.2 as base version * Use Python 3.3 as base version * Use Python 3.4 as base version * Use Python 3.5 as base version * Use Python 3.6 as base version * Use Python 3.7 as base version * Use Python 3.8 as base version * Use Python 3.9 as base version * Add annotationlib for Python 3.14 * Fix syntax error
This commit is contained in:
committed by
GitHub
parent
5c01d17435
commit
d5e8ad6406
@@ -42,9 +42,7 @@ class WinPythonBuilder : PythonBuilder {
|
||||
Return extension for required version of Python executable.
|
||||
#>
|
||||
|
||||
$extension = if ($this.Version -lt "3.5" -and $this.Version -ge "2.5") { ".msi" } else { ".exe" }
|
||||
|
||||
return $extension
|
||||
return ".exe"
|
||||
}
|
||||
|
||||
[string] GetArchitectureExtension() {
|
||||
@@ -55,11 +53,7 @@ class WinPythonBuilder : PythonBuilder {
|
||||
|
||||
$ArchitectureExtension = ""
|
||||
if ($this.GetHardwareArchitecture() -eq "x64") {
|
||||
if ($this.Version -ge "3.5") {
|
||||
$ArchitectureExtension = "-amd64"
|
||||
} else {
|
||||
$ArchitectureExtension = ".amd64"
|
||||
}
|
||||
$ArchitectureExtension = "-amd64"
|
||||
} elseif ($this.GetHardwareArchitecture() -eq "arm64") {
|
||||
$ArchitectureExtension = "-arm64"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user