"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.1.tar.gz and scikit-image-0.19.2.tar.gz

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

wheel_tests_and_release.yml  (scikit-image-0.19.1):wheel_tests_and_release.yml  (scikit-image-0.19.2)
skipping to change at line 138 skipping to change at line 138
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.9' python-version: '3.9'
- name: Install cibuildwheel - name: Install cibuildwheel
run: | run: |
python -m pip install cibuildwheel python -m pip install cibuildwheel
- name: Build wheels for CPython Mac OS - name: Build wheels for CPython Mac OS
run: | run: |
# Make sure to use a libomp version binary compatible with the oldest # Make sure to use a libomp version binary compatible with the oldest
# supported version of the macos SDK as libomp will be vendored into # supported version of the macos SDK as libomp will be vendored into
# the scikit-image wheels for macos. The list of binaries are in # the scikit-image wheels for macos. The list of binaries are in
# https://packages.macports.org/libomp/. Currently, the oldest # https://packages.macports.org/libomp/. Currently, the oldest
# supported macos version is: High Sierra / 10.13. When upgrading # supported macos version is: High Sierra / 10.13. When upgrading
# this, be sure to update the MACOSX_DEPLOYMENT_TARGET environment # this, be sure to update the MACOSX_DEPLOYMENT_TARGET environment
# variable accordingly. Note that Darwin_17 == High Sierra / 10.13. # variable accordingly. Note that Darwin_17 == High Sierra / 10.13.
if [[ "$CIBW_ARCHS_MACOS" == arm64 ]]; then if [[ "$CIBW_ARCHS_MACOS" == arm64 ]]; then
# SciPy requires 12.0 on arm to prevent kernel panics # SciPy requires 12.0 on arm to prevent kernel panics
# https://github.com/scipy/scipy/issues/14688 # https://github.com/scipy/scipy/issues/14688
# so being conservative, we just do the same here # so being conservative, we just do the same here
export MACOSX_DEPLOYMENT_TARGET=12.0 export MACOSX_DEPLOYMENT_TARGET=12.0
wget https://packages.macports.org/libomp/libomp-11.0.1_0.darwin_2 0.arm64.tbz2 -O libomp.tbz2 OPENMP_URL="https://anaconda.org/conda-forge/llvm-openmp/11.1.0/do wnload/osx-arm64/llvm-openmp-11.1.0-hf3c4609_1.tar.bz2"
else else
export MACOSX_DEPLOYMENT_TARGET=10.13 export MACOSX_DEPLOYMENT_TARGET=10.13
wget https://packages.macports.org/libomp/libomp-11.0.1_0+universa l.darwin_17.i386-x86_64.tbz2 -O libomp.tbz2 OPENMP_URL="https://anaconda.org/conda-forge/llvm-openmp/11.1.0/do wnload/osx-64/llvm-openmp-11.1.0-hda6cdc1_1.tar.bz2"
fi fi
echo MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} echo MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET}
sudo tar -C / -xvjf libomp.tbz2 opt
# use conda to install llvm-openmp
# Note that we do NOT activate the conda environment, we just add the
# library install path to CFLAGS/CXXFLAGS/LDFLAGS below.
sudo conda create -n build $OPENMP_URL
PREFIX="/usr/local/miniconda/envs/build"
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
export CPPFLAGS="$CPPFLAGS -Xpreprocessor -fopenmp"
export CFLAGS="$CFLAGS -Wno-implicit-function-declaration -I$PREFIX/in
clude"
export CXXFLAGS="$CXXFLAGS -I$PREFIX/include"
export LDFLAGS="$LDFLAGS -Wl,-S -Wl,-rpath,$PREFIX/lib -L$PREFIX/lib -
lomp"
python -m cibuildwheel --output-dir dist python -m cibuildwheel --output-dir dist
env: env:
CIBW_BUILD: ${{ matrix.cibw_python }} CIBW_BUILD: ${{ matrix.cibw_python }}
CIBW_ARCHS_MACOS: ${{ matrix.cibw_arch }} CIBW_ARCHS_MACOS: ${{ matrix.cibw_arch }}
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"
# CIBW_BEFORE_BUILD: pip install certifi numpy==1.19.3
CC: /usr/bin/clang
CXX: /usr/bin/clang++
CPPFLAGS: "-Xpreprocessor -fopenmp"
CFLAGS: "-Wno-implicit-function-declaration -I/opt/local/include/libom
p"
CXXFLAGS: "-I/opt/local/include/libomp"
LDFLAGS: "-Wl,-S -Wl,-rpath,/opt/local/lib/libomp -L/opt/local/lib/lib
omp -lomp"
- 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_arch }} wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
 End of changes. 5 change blocks. 
12 lines changed or deleted 18 lines changed or added

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