Skip to content

Commit

Permalink
Use custom ENV to exclude libEGL from wheel, need moderngl for testing
Browse files Browse the repository at this point in the history
See
pypa/cibuildwheel#2118

Excluding libEGL.so.1 is enough.
  • Loading branch information
HinTak committed Jan 13, 2025
1 parent 70d2081 commit 35b82c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,12 @@ jobs:
CIBW_BEFORE_ALL: bash scripts/build_${{ runner.os }}.sh
CIBW_BEFORE_BUILD: pip install pybind11 numpy
CIBW_TEST_REQUIRES: pytest pillow glfw
CIBW_TEST_REQUIRES_LINUX: pytest pillow glfw moderngl
CIBW_TEST_REQUIRES_MACOS: pytest pillow pyopengl
CIBW_TEST_COMMAND: python -m pytest {project}/tests
CIBW_TEST_COMMAND_LINUX: >
xvfb-run -s "-screen 0 640x480x24" python -m pytest {project}/tests
CIBW_REPAIR_WHEEL_COMMAND_LINUX: "auditwheel repair --exclude libEGL.so.1 -w {dest_dir} {wheel}"
CIBW_TEST_SKIP: "*-macosx_arm64"

- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -190,10 +192,12 @@ jobs:
CIBW_BEFORE_ALL: bash scripts/build_${{ runner.os }}.sh
CIBW_BEFORE_BUILD: pip install pybind11 numpy
CIBW_TEST_REQUIRES: pytest pillow glfw
CIBW_TEST_REQUIRES_LINUX: pytest pillow glfw moderngl
CIBW_TEST_REQUIRES_MACOS: pytest pillow pyopengl
CIBW_TEST_COMMAND: python -m pytest {project}/tests
CIBW_TEST_COMMAND_LINUX: >
xvfb-run -s "-screen 0 640x480x24" python -m pytest {project}/tests
CIBW_REPAIR_WHEEL_COMMAND_LINUX: "auditwheel repair --exclude libEGL.so.1 -w {dest_dir} {wheel}"
CIBW_TEST_SKIP: "*-macosx_arm64"

- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 35b82c1

Please sign in to comment.