summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2019-05-18 10:26:51 +0300
committerNed Batchelder <ned@nedbatchelder.com>2019-05-18 10:27:22 -0400
commite326d8c9f61443558883fe9fc1b7b46c306b849b (patch)
tree582ed149161e9b5214bfdf26b8d721f3a457da28
parent14af23ee2ed49610883b9a33797c1bdc5883758b (diff)
downloadpython-coveragepy-git-e326d8c9f61443558883fe9fc1b7b46c306b849b.tar.gz
Remove conditions for dropped Python versions
-rw-r--r--ci/install.ps139
1 files changed, 5 insertions, 34 deletions
diff --git a/ci/install.ps1 b/ci/install.ps1
index f9934aa1..fd5ab220 100644
--- a/ci/install.ps1
+++ b/ci/install.ps1
@@ -66,35 +66,10 @@ function ParsePythonVersion ($python_version) {
function DownloadPython ($python_version, $platform_suffix) {
$major, $minor, $micro, $prerelease = ParsePythonVersion $python_version
- if (($major -le 2 -and $micro -eq 0) `
- -or ($major -eq 3 -and $minor -le 2 -and $micro -eq 0) `
- ) {
- $dir = "$major.$minor"
- $python_version = "$major.$minor$prerelease"
- } else {
- $dir = "$major.$minor.$micro"
- }
-
- if ($prerelease) {
- if (($major -le 2) `
- -or ($major -eq 3 -and $minor -eq 1) `
- -or ($major -eq 3 -and $minor -eq 2) `
- -or ($major -eq 3 -and $minor -eq 3) `
- ) {
- $dir = "$dir/prev"
- }
- }
-
- if (($major -le 2) -or ($major -le 3 -and $minor -le 4)) {
- $ext = "msi"
- if ($platform_suffix) {
- $platform_suffix = ".$platform_suffix"
- }
- } else {
- $ext = "exe"
- if ($platform_suffix) {
- $platform_suffix = "-$platform_suffix"
- }
+ $dir = "$major.$minor.$micro"
+ $ext = "exe"
+ if ($platform_suffix) {
+ $platform_suffix = "-$platform_suffix"
}
$filename = "python-$python_version$platform_suffix.$ext"
@@ -173,11 +148,7 @@ function InstallPip ($python_home) {
function DownloadMiniconda ($python_version, $platform_suffix) {
- if ($python_version -eq "3.4") {
- $filename = "Miniconda3-3.5.5-Windows-" + $platform_suffix + ".exe"
- } else {
- $filename = "Miniconda-3.5.5-Windows-" + $platform_suffix + ".exe"
- }
+ $filename = "Miniconda-3.5.5-Windows-" + $platform_suffix + ".exe"
$url = $MINICONDA_URL + $filename
$filepath = Download $filename $url
return $filepath