Skip to content

Commit

Permalink
fix(python): Use the MUSLLinux VTK compilation when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguinariojoe committed Aug 19, 2024
1 parent c005d68 commit e5fe619
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/python-wheels-emulated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,18 @@ jobs:
os: ${{ fromJSON(inputs.os) }}
env:
# Skip 32-bit windows wheels builds.
CIBW_SKIP: "*-win32* pp38-* pp39-* pp310-* *musllinux*ppc64le*"
CIBW_SKIP: "*-win32* pp38-* pp39-* pp310-*"
CIBW_ARCHS: ${{inputs.arch}}
CIBW_ENVIRONMENT_LINUX: "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/project/install/lib"
CIBW_BEFORE_ALL_LINUX: >
echo "Considering vtk-manylinux2014_`uname -m`.tar.gz..." &&
if pip debug --verbose | grep -q 'musllinux'; then
DISTRO=musllinux_1_2
else
DISTRO=manylinux2014
fi &&
echo "Considering vtk-${DISTRO}_`uname -m`.tar.gz..." &&
mkdir -p vtk &&
tar -xvzf vtk-manylinux2014_`uname -m`.tar.gz -C vtk/ &&
tar -xvzf vtk-${DISTRO}_`uname -m`.tar.gz -C vtk/ &&
if [ -d "vtk/lib" ]; then
VTK_DIR=vtk/lib/cmake/vtk-${{inputs.vtk_major}}.${{inputs.vtk_minor}}
else
Expand Down Expand Up @@ -86,13 +91,20 @@ jobs:
cat pyproject.toml
shell: bash

- name: download pre-built VTK static library (Linux)
- name: download pre-built VTK static library (ManyLinux)
uses: suisei-cn/[email protected]
with:
url: https://github.com/sanguinariojoe/vtk-builds/releases/download/VTK-${{inputs.vtk_major}}.${{inputs.vtk_minor}}.${{inputs.vtk_patch}}-static/vtk-manylinux2014_${{inputs.arch}}.tar.gz
target: ${{github.workspace}}/
if: runner.os == 'Linux'

- name: download pre-built VTK static library (MUSLLinux)
uses: suisei-cn/[email protected]
with:
url: https://github.com/sanguinariojoe/vtk-builds/releases/download/VTK-${{inputs.vtk_major}}.${{inputs.vtk_minor}}.${{inputs.vtk_patch}}-static/vtk-musllinux_1_2_${{inputs.arch}}.tar.gz
target: ${{github.workspace}}/
if: runner.os == 'Linux'

- name: download pre-built VTK static library (Windows)
uses: suisei-cn/[email protected]
with:
Expand Down

0 comments on commit e5fe619

Please sign in to comment.