Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
e268b8f6
"docs-source/python-api/conf.py" did not exist on "b7088b74013784d6bad5d5a27923974bfacdaaea"
Commit
e268b8f6
authored
Oct 08, 2019
by
mattip
Browse files
generalize the script, assuming we always want revision 0 (3.8.0rc1 here)
parent
8623a661
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
.appveyor.yml
.appveyor.yml
+1
-1
install_python.ps1
install_python.ps1
+3
-8
No files found.
.appveyor.yml
View file @
e268b8f6
...
@@ -80,5 +80,5 @@ test_script:
...
@@ -80,5 +80,5 @@ test_script:
-
ps
:
.\install_python.ps1
-
ps
:
.\install_python.ps1
-
set PYTHON=C:\Python37-x64
-
set PYTHON=C:\Python37-x64
-
ps
:
.\install_python.ps1
-
ps
:
.\install_python.ps1
-
set PYTHON=C:\Python38-x64
-
set PYTHON=C:\Python38
rc1
-x64
-
ps
:
.\install_python.ps1
-
ps
:
.\install_python.ps1
install_python.ps1
View file @
e268b8f6
...
@@ -7,8 +7,9 @@ $py_exe = "${env:PYTHON}\Python.exe"
...
@@ -7,8 +7,9 @@ $py_exe = "${env:PYTHON}\Python.exe"
if
(
[
System.IO.File
]::
Exists
(
$py_exe
)
)
{
if
(
[
System.IO.File
]::
Exists
(
$py_exe
)
)
{
exit
0
exit
0
}
}
$req_nodot
=
$
env
:
PYTHON
-replace
'\D+Python(\d+)(?:-x64)?'
,
'$1'
$req_nodot
=
$
env
:
PYTHON
-replace
'\D+Python(\d+
(?:rc\d+)
)(?:-x64)?'
,
'$1'
$req_ver
=
$req_nodot
-replace
'(\d)(\d+)'
,
'$1.$2.0'
$req_ver
=
$req_nodot
-replace
'(\d)(\d+)'
,
'$1.$2.0'
$req_dir
=
$req_nodot
-replace
'(\d)(\d+)(.*)'
,
'$1.$2.0'
if
(
$
env
:
PYTHON
-eq
"C:\Python
${req_nodot}
-x64"
)
{
if
(
$
env
:
PYTHON
-eq
"C:\Python
${req_nodot}
-x64"
)
{
$exe_suffix
=
"-amd64"
$exe_suffix
=
"-amd64"
...
@@ -21,13 +22,7 @@ if ($env:PYTHON -eq "C:\Python${req_nodot}-x64") {
...
@@ -21,13 +22,7 @@ if ($env:PYTHON -eq "C:\Python${req_nodot}-x64") {
$py_url
=
"https://www.python.org/ftp/python"
$py_url
=
"https://www.python.org/ftp/python"
Write-Host
"Installing Python
${req_ver}$exe_suffix
..."
-ForegroundColor
Cyan
Write-Host
"Installing Python
${req_ver}$exe_suffix
..."
-ForegroundColor
Cyan
$exePath
=
"
$
env
:
TEMP
\python-
${req_ver}${exe_suffix}
.exe"
$exePath
=
"
$
env
:
TEMP
\python-
${req_ver}${exe_suffix}
.exe"
$downloadFile
=
"
$py_url
/
${req_dir}
/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
..."
Write-Host
"Downloading
$downloadFile
..."
(
New-Object
Net.WebClient
)
.
DownloadFile
(
$downloadFile
,
$exePath
)
(
New-Object
Net.WebClient
)
.
DownloadFile
(
$downloadFile
,
$exePath
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment