-
Notifications
You must be signed in to change notification settings - Fork 911
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a3f438
commit 53f53ba
Showing
5 changed files
with
130 additions
and
11 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,19 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
export msys2='cmd //C RefreshEnv.cmd ' | ||
export msys2+='& set MSYS=winsymlinks:nativestrict ' | ||
export msys2+='& C:\\msys64\\msys2_shell.cmd -defterm -no-start' | ||
export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --" | ||
export msys2+=" -msys2 -c "\"\$@"\" --" | ||
|
||
# Have to update pacman first or choco upgrade will failure due to migration | ||
# to zstd instead of xz compression | ||
$msys2 pacman -Sy --noconfirm pacman | ||
|
||
## Install more MSYS2 packages from https://packages.msys2.org/base here | ||
$msys2 pacman --sync --noconfirm --needed mingw-w64-x86_64-gcc | ||
|
||
## Install unzip | ||
$msys2 pacman --sync --noconfirm --needed unzip |
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,11 @@ | ||
#!/bin/bash | ||
pacman -S python --version 3.8.0 | ||
|
||
set -e | ||
|
||
export PATH="$PATH;C:\Python38;C:\Python38\Scripts" | ||
export MAKE=mingw32-make # so that Autotools can find it | ||
|
||
cmd /c mklink /D C:\Python38\python3.exe C:\Python38\python.exe | ||
|
||
python -m pip install cibuildwheel==2.12.0 |
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,31 @@ | ||
# Install (if necessary) and set up msys2. | ||
|
||
|
||
$url="https://github.com/msys2/msys2-installer/releases/download/2022-10-28/msys2-base-x86_64-20221028.sfx.exe" | ||
$sha256="e365b79b4b30b6f4baf34bd93f3d2a41c0a92801c7a96d79cddbfca1090a0554" | ||
|
||
|
||
if (!(Test-Path -Path "c:\msys64\usr\bin\bash.exe")) { | ||
echo "Downloading and installing msys2 to c:\msys64" | ||
|
||
(New-Object System.Net.WebClient).DownloadFile($url, './msys2-installer.exe') | ||
|
||
# Verify checksum | ||
(Get-FileHash -Algorithm "SHA256" .\msys2-installer.exe).hash -eq $sha256 | ||
|
||
# Install msys2 | ||
.\msys2-installer.exe -y -oc:\ | ||
|
||
Remove-Item msys2-installer.exe | ||
|
||
# Set up msys2 the first time | ||
echo "Setting up msys" | ||
c:\msys64\usr\bin\bash -lc ' ' | ||
|
||
} else { | ||
echo "Using previously installed msys2" | ||
} | ||
|
||
# Update packages | ||
echo "Updating msys2 packages" | ||
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu --overwrite '*'" |
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