Skip to content

Commit

Permalink
ci: try setting the same args in cibuildwheel
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed May 26, 2024
1 parent 7c6c130 commit 43b7b7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/emscripten.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
actions-cache-folder: emsdk-cache

- name: Build
run: CFLAGS=-fexceptions LDFLAGS=-fexceptions pyodide build --exports whole_archive
run: cflags=-fexceptions ldflags=-fexceptions pyodide build --exports whole_archive

- uses: actions/setup-node@v4
with:
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ environment-pass = ["SETUPTOOLS_SCM_PRETEND_VERSION"]
environment.PIP_ONLY_BINARY = "numpy"
environment.PIP_PREFER_BINARY = "1"

[[tool.cibuildwheel.overrides]]
select = "*pyodide*"
inherit.environment = "append"
environment.CFLAGS = "-fexceptions"
environment.LDFLAGS = "-fexceptions"
build-frontend = {name = "build", args = ["--exports", "whole_archive"]}


[tool.pylint]
py-version = "3.7"
Expand Down

0 comments on commit 43b7b7e

Please sign in to comment.