-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #954 from skoudoro/enable-pytest
RF: Enable Test for v2 branch
- Loading branch information
Showing
30 changed files
with
956 additions
and
745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Sample script to install Python and pip under Windows | ||
# Authors: Olivier Grisel, Jonathan Helmus and Kyle Kastner | ||
# License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/ | ||
|
||
# Adapted from VisPy | ||
|
||
$MESA_GL_URL = "https://github.com/vispy/demo-data/raw/main/mesa/" | ||
|
||
# Mesa DLLs found linked from: | ||
# http://qt-project.org/wiki/Cross-compiling-Mesa-for-Windows | ||
# to: | ||
# http://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64/mingw-w64-x86_64-mesa-10.2.4-1-any.pkg.tar.xz/download | ||
|
||
function DownloadMesaOpenGL ($architecture) { | ||
[Net.ServicePointManager]::SecurityProtocol = 'Ssl3, Tls, Tls11, Tls12' | ||
$webclient = New-Object System.Net.WebClient | ||
# Download and retry up to 3 times in case of network transient errors. | ||
$url = $MESA_GL_URL + "opengl32_mingw_" + $architecture + ".dll" | ||
if ($architecture -eq "32") { | ||
$filepath = "C:\Windows\SysWOW64\opengl32.dll" | ||
} else { | ||
$filepath = "C:\Windows\system32\opengl32.dll" | ||
} | ||
takeown /F $filepath /A | ||
icacls $filepath /grant "${env:ComputerName}\${env:UserName}:F" | ||
Remove-item -LiteralPath $filepath | ||
Write-Output "Downloading" $url | ||
$retry_attempts = 2 | ||
for($i=0; $i -lt $retry_attempts; $i++){ | ||
try { | ||
$webclient.DownloadFile($url, $filepath) | ||
break | ||
} | ||
Catch [Exception]{ | ||
Start-Sleep 1 | ||
} | ||
} | ||
if (Test-Path $filepath) { | ||
Write-Output "File saved at" $filepath | ||
} else { | ||
# Retry once to get the error message if any at the last try | ||
$webclient.DownloadFile($url, $filepath) | ||
} | ||
} | ||
|
||
|
||
function main () { | ||
DownloadMesaOpenGL "64" | ||
} | ||
|
||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.