Skip to content

Commit

Permalink
add config file for cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed Nov 20, 2023
1 parent b9a30ae commit c208584
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build_compiled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ jobs:
run: python -m pip install cibuildwheel twine

- name: Build wheels
env:
CIBW_BEFORE_ALL: pip install mypy[mypyc]
run: |
python build.py package
Expand Down
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def main() -> int:
with open("./setup.py", "w") as setup_file:
setup_file.write(setup_code)

process = subprocess.run(["cibuildwheel"])
process = subprocess.run(["cibuildwheel", "--config-file=cibw_config.toml"])
return process.returncode

library_name = args.library
Expand Down
8 changes: 8 additions & 0 deletions cibw_config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build-system]
requires = [
"setuptools",
"wheel",
"mypy[mypyc]",
]

build-backend = "setuptools.build_meta"

0 comments on commit c208584

Please sign in to comment.