File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -80,3 +80,5 @@ test_script:
80
80
- ps : .\install_python.ps1
81
81
- set PYTHON=C:\Python37-x64
82
82
- ps : .\install_python.ps1
83
+ - set PYTHON=C:\Python38rc1-x64
84
+ - ps : .\install_python.ps1
Original file line number Diff line number Diff line change 1
1
downloads /
2
2
* .orig
3
+ * .swp
Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ $py_exe = "${env:PYTHON}\Python.exe"
7
7
if ( [System.IO.File ]::Exists($py_exe ) ) {
8
8
exit 0
9
9
}
10
- $req_nodot = $env: PYTHON -replace ' \D+Python(\d+)(?:-x64)?' , ' $1'
10
+ $req_nodot = $env: PYTHON -replace ' \D+Python(\d+(?:rc\d+) )(?:-x64)?' , ' $1'
11
11
$req_ver = $req_nodot -replace ' (\d)(\d+)' , ' $1.$2.0'
12
+ $req_dir = $req_nodot -replace ' (\d)(\d+)(.*)' , ' $1.$2.0'
12
13
13
14
if ($env: PYTHON -eq " C:\Python${req_nodot} -x64" ) {
14
15
$exe_suffix = " -amd64"
@@ -21,7 +22,8 @@ if ($env:PYTHON -eq "C:\Python${req_nodot}-x64") {
21
22
$py_url = " https://www.python.org/ftp/python"
22
23
Write-Host " Installing Python ${req_ver}$exe_suffix ..." - ForegroundColor Cyan
23
24
$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
+
25
27
Write-Host " Downloading $downloadFile ..."
26
28
(New-Object Net.WebClient).DownloadFile($downloadFile , $exePath )
27
29
Write-Host " Installing..."
You can’t perform that action at this time.
0 commit comments