Skip to content

Commit d0cf77e

Browse files
authored
Merge pull request multi-build#264 from mattip/windows-3.8
Add python 3.8.0rc1 to windows possibilities
2 parents f0bff09 + e268b8f commit d0cf77e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.appveyor.yml

+2
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,5 @@ test_script:
8080
- ps: .\install_python.ps1
8181
- set PYTHON=C:\Python37-x64
8282
- ps: .\install_python.ps1
83+
- set PYTHON=C:\Python38rc1-x64
84+
- ps: .\install_python.ps1

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
downloads/
22
*.orig
3+
*.swp

install_python.ps1

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ $py_exe = "${env:PYTHON}\Python.exe"
77
if ( [System.IO.File]::Exists($py_exe) ) {
88
exit 0
99
}
10-
$req_nodot = $env:PYTHON -replace '\D+Python(\d+)(?:-x64)?','$1'
10+
$req_nodot = $env:PYTHON -replace '\D+Python(\d+(?:rc\d+))(?:-x64)?','$1'
1111
$req_ver = $req_nodot -replace '(\d)(\d+)','$1.$2.0'
12+
$req_dir = $req_nodot -replace '(\d)(\d+)(.*)','$1.$2.0'
1213

1314
if ($env:PYTHON -eq "C:\Python${req_nodot}-x64") {
1415
$exe_suffix="-amd64"
@@ -21,7 +22,8 @@ if ($env:PYTHON -eq "C:\Python${req_nodot}-x64") {
2122
$py_url = "https://www.python.org/ftp/python"
2223
Write-Host "Installing Python ${req_ver}$exe_suffix..." -ForegroundColor Cyan
2324
$exePath = "$env:TEMP\python-${req_ver}${exe_suffix}.exe"
24-
$downloadFile = "$py_url/${req_ver}/python-${req_ver}${exe_suffix}.exe"
25+
$downloadFile = "$py_url/${req_dir}/python-${req_ver}${exe_suffix}.exe"
26+
2527
Write-Host "Downloading $downloadFile..."
2628
(New-Object Net.WebClient).DownloadFile($downloadFile, $exePath)
2729
Write-Host "Installing..."

0 commit comments

Comments
 (0)