Skip to content

Commit

Permalink
add python 3.8.0rc1 to windows possibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Oct 8, 2019
1 parent f0bff09 commit 8623a66
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,5 @@ test_script:
- ps: .\install_python.ps1
- set PYTHON=C:\Python37-x64
- ps: .\install_python.ps1
- set PYTHON=C:\Python38-x64
- ps: .\install_python.ps1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
downloads/
*.orig
*.swp
9 changes: 8 additions & 1 deletion install_python.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ if ($env:PYTHON -eq "C:\Python${req_nodot}-x64") {
$py_url = "https://www.python.org/ftp/python"
Write-Host "Installing Python ${req_ver}$exe_suffix..." -ForegroundColor Cyan
$exePath = "$env:TEMP\python-${req_ver}${exe_suffix}.exe"
$downloadFile = "$py_url/${req_ver}/python-${req_ver}${exe_suffix}.exe"

if ($req_nodot -eq "38") {
$downloadFile = "$py_url/${req_ver}/python-${req_ver}rc1${exe_suffix}.exe"
}
else {
$downloadFile = "$py_url/${req_ver}/python-${req_ver}${exe_suffix}.exe"
}

Write-Host "Downloading $downloadFile..."
(New-Object Net.WebClient).DownloadFile($downloadFile, $exePath)
Write-Host "Installing..."
Expand Down

0 comments on commit 8623a66

Please sign in to comment.