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
d0cf77e6
Unverified
Commit
d0cf77e6
authored
Oct 08, 2019
by
Matti Picus
Committed by
GitHub
Oct 08, 2019
Browse files
Merge pull request #264 from mattip/windows-3.8
Add python 3.8.0rc1 to windows possibilities
parents
f0bff09b
e268b8f6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
.appveyor.yml
.appveyor.yml
+2
-0
.gitignore
.gitignore
+1
-0
install_python.ps1
install_python.ps1
+4
-2
No files found.
.appveyor.yml
View file @
d0cf77e6
...
...
@@ -80,3 +80,5 @@ test_script:
-
ps
:
.\install_python.ps1
-
set PYTHON=C:\Python37-x64
-
ps
:
.\install_python.ps1
-
set PYTHON=C:\Python38rc1-x64
-
ps
:
.\install_python.ps1
.gitignore
View file @
d0cf77e6
downloads/
*.orig
*.swp
install_python.ps1
View file @
d0cf77e6
...
...
@@ -7,8 +7,9 @@ $py_exe = "${env:PYTHON}\Python.exe"
if
(
[
System.IO.File
]::
Exists
(
$py_exe
)
)
{
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_dir
=
$req_nodot
-replace
'(\d)(\d+)(.*)'
,
'$1.$2.0'
if
(
$
env
:
PYTHON
-eq
"C:\Python
${req_nodot}
-x64"
)
{
$exe_suffix
=
"-amd64"
...
...
@@ -21,7 +22,8 @@ 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"
$downloadFile
=
"
$py_url
/
${req_dir}
/python-
${req_ver}${exe_suffix}
.exe"
Write-Host
"Downloading
$downloadFile
..."
(
New-Object
Net.WebClient
)
.
DownloadFile
(
$downloadFile
,
$exePath
)
Write-Host
"Installing..."
...
...
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