"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file ".github/workflows/wheel_tests_and_release.yml" between
scikit-image-0.19.2.tar.gz and scikit-image-0.19.3.tar.gz

About: scikit-image is a collection of algorithms for image processing in Python.

wheel_tests_and_release.yml  (scikit-image-0.19.2):wheel_tests_and_release.yml  (scikit-image-0.19.3)
skipping to change at line 186 skipping to change at line 186
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1 CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
CIBW_MANYLINUX_I686_IMAGE: manylinux1 CIBW_MANYLINUX_I686_IMAGE: manylinux1
CIBW_TEST_SKIP: "*-macosx_arm64" CIBW_TEST_SKIP: "*-macosx_arm64"
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: wheels name: wheels
path: ./dist/*.whl path: ./dist/*.whl
build_windows_wheels: build_windows_wheels:
name: Build ${{ matrix.cibw_arch }} wheels on ${{ matrix.os }} name: Build ${{ matrix.cibw_python }} ${{ matrix.cibw_arch }} wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-latest] os: [windows-latest]
cibw_arch: ["AMD64", "x86"] cibw_arch: ["AMD64", "x86"]
cibw_python: ["cp37-*", "cp38-*", "cp39-*", "cp310-*"]
exclude:
- os: windows-latest
cibw_python: "cp310-*"
cibw_arch: x86
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
name: Install Python name: Install Python
with: with:
python-version: '3.7' python-version: '3.7'
skipping to change at line 216 skipping to change at line 221
name: Install chocolatey name: Install chocolatey
with: with:
args: -h args: -h
# install x86 clang-cl (needed for Pythran) # install x86 clang-cl (needed for Pythran)
- name: Install x86 clang-cl - name: Install x86 clang-cl
if: matrix.cibw_arch == 'x86' if: matrix.cibw_arch == 'x86'
run: | run: |
choco install --force --x86 llvm choco install --force --x86 llvm
# install clang-cl (needed for Pythran) - name: Install x64 clang-cl
- name: Install clang-cl
if: matrix.cibw_arch == 'AMD64' if: matrix.cibw_arch == 'AMD64'
run: | run: |
choco install --force llvm choco install --force llvm
- name: Install cibuildwheel and add clang-cl to path - name: Install cibuildwheel and add clang-cl to path
run: | run: |
python -m pip install cibuildwheel python -m pip install cibuildwheel
SET PATH="C:\\Program Files\\LLVM\\bin;%PATH%" SET PATH="C:\\Program Files\\LLVM\\bin;%PATH%"
SET PATH="C:\\Program Files (x86)\\LLVM\\bin;%PATH%" SET PATH="C:\\Program Files (x86)\\LLVM\\bin;%PATH%"
- name: Build Windows wheels for CPython 3.10 - name: Build x86 Windows wheels for CPython
# NumPy dropped x86 wheels for Python 3.10 if: matrix.cibw_arch == 'x86'
if: matrix.cibw_arch == 'AMD64' # To avoid "LINK : fatal error LNK1158: cannot run 'rc.exe'"
# we explicitly add rc.exe to path using the method from:
# https://github.com/actions/virtual-environments/issues/294#issuecommen
t-588090582
# with additional -arch=x86 flag to vsdevcmd.bat
run: | run: |
function Invoke-VSDevEnvironment {
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Install
er\vswhere.exe"
$installationPath = & $vswhere -prerelease -legacy -latest -proper
ty installationPath
$Command = Join-Path $installationPath "Common7\Tools\vsdevcmd.bat
"
& "${env:COMSPEC}" /s /c "`"$Command`" -arch=x86 -no_logo && set" |
Foreach-Object {
if ($_ -match '^([^=]+)=(.*)') {
[System.Environment]::SetEnvironmentVariable($matches[1],
$matches[2])
}
}
}
Invoke-VSDevEnvironment
Get-Command rc.exe | Format-Table -AutoSize
python -m cibuildwheel --output-dir dist python -m cibuildwheel --output-dir dist
env: env:
CIBW_BUILD: "cp310-*" CIBW_BUILD: ${{ matrix.cibw_python }}
CIBW_ARCHS_WINDOWS: ${{ matrix.cibw_arch }} CIBW_ARCHS_WINDOWS: ${{ matrix.cibw_arch }}
# -Wl,-S equivalent to gcc's -Wl,--strip-debug # -Wl,-S equivalent to gcc's -Wl,--strip-debug
LDFLAGS: "-Wl,-S" LDFLAGS: "-Wl,-S"
- name: Build Windows wheels for CPython - name: Build x64 Windows wheels for CPython
if: matrix.cibw_arch == 'AMD64'
# To avoid "LINK : fatal error LNK1158: cannot run 'rc.exe'"
# we explicitly add rc.exe to path using the method from:
# https://github.com/actions/virtual-environments/issues/294#issuecommen
t-588090582
# with additional -arch=x86 flag to vsdevcmd.bat
run: | run: |
function Invoke-VSDevEnvironment {
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Install
er\vswhere.exe"
$installationPath = & $vswhere -prerelease -legacy -latest -proper
ty installationPath
$Command = Join-Path $installationPath "Common7\Tools\vsdevcmd.bat
"
& "${env:COMSPEC}" /s /c "`"$Command`" -arch=amd64 -no_logo && set"
| Foreach-Object {
if ($_ -match '^([^=]+)=(.*)') {
[System.Environment]::SetEnvironmentVariable($matches[1],
$matches[2])
}
}
}
Invoke-VSDevEnvironment
Get-Command rc.exe | Format-Table -AutoSize
python -m cibuildwheel --output-dir dist python -m cibuildwheel --output-dir dist
env: env:
CIBW_BUILD: "cp3?-*" CIBW_BUILD: ${{ matrix.cibw_python }}
CIBW_SKIP: "cp36-*"
CIBW_ARCHS_WINDOWS: ${{ matrix.cibw_arch }} CIBW_ARCHS_WINDOWS: ${{ matrix.cibw_arch }}
# -Wl,-S equivalent to gcc's -Wl,--strip-debug # -Wl,-S equivalent to gcc's -Wl,--strip-debug
LDFLAGS: "-Wl,-S" LDFLAGS: "-Wl,-S"
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: wheels name: wheels
path: ./dist/*.whl path: ./dist/*.whl
deploy: deploy:
 End of changes. 9 change blocks. 
10 lines changed or deleted 57 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)