Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
remove ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed May 9, 2024
1 parent 7956d33 commit 05a13b1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: |
pip install -r requirements-dev.txt
pip wheel . -v -w wheelhouse
pip wheel . -v -w wheelhouse --no-build-isolation
- name: test
run: |
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
run: |
pip install -r requirements-dev.txt
pip wheel . -v -w wheelhouse
pip wheel . -v -w wheelhouse --no-build-isolation
- name: test
run: |
Expand Down
25 changes: 13 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
[build-system]
requires = [
"setuptools>=42",
"wheel",
"cmake>=3.12",
"ctypesgen",
"ninja",
"cffi"
]
build-backend = "setuptools.build_meta"

[tool.cibuildwheel]
environment = { PIP_NO_BUILD_ISOLATION = "false" }
before-all = [
"rm -rf {project}/build",
"rm -rf *egg*",
Expand All @@ -21,10 +11,21 @@ manylinux-x86_64-image = "manylinux_2_28"

[tool.cibuildwheel.linux]
skip = ["*-manylinux_i686", "*-musllinux*"]
environment-pass = [
"PIP_NO_BUILD_ISOLATION",
]
before-build = [
"pip install -r requirements-dev.txt",
"yum install -y epel-release && yum install -y ninja-build cmake openssl openssl-devel"
]

[tool.cibuildwheel.macos]
before-build = [
"pip install -r requirements-dev.txt",
"yum install -y epel-release && yum install -y openssl openssl-devel"
]

[tool.cibuildwheel.windows]
skip = ["*-win32"]
before-build = [
"pip install -r requirements-dev.txt",
]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def build_extension(self, ext: CMakeExtension) -> None:

cmake_args = [
f"-B{build_temp}",
f"-G {cmake_generator}",
f"-G{cmake_generator}",
f"-DCMAKE_MODULE_PATH={CMAKE_MODULE_PATH}",
"-DCMAKE_PLATFORM_NO_VERSIONED_SONAME=ON",
f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={extdir / PACKAGE_NAME}",
Expand Down

0 comments on commit 05a13b1

Please sign in to comment.