Skip to content

Commit

Permalink
py: replace setup.py with pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
janden committed Jul 15, 2024
1 parent fff9dc9 commit c3e3ea3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 101 deletions.
6 changes: 4 additions & 2 deletions pyproject.toml → python/finufft/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,20 @@ minimum-version = "0.4"
# Setuptools-style build caching in a local directory
build-dir = "build/{wheel_tag}"

# Tell skbuild to look for the CMakeLists.txt file two directories up.
cmake.source-dir = "../../"
cmake.targets = ["finufft"]
cmake.define = {"FINUFFT_BUILD_PYTHON" = "ON", "FINUFFT_ENABLE_INSTALL" = "OFF"}

wheel.packages = ["python/finufft/finufft"]
wheel.packages = ["finufft"]

# Indicate that we don't depend on the CPython API
wheel.py-api = "py3"

[tool.scikit-build.metadata.version]
# Instead of hardcoding the version here, extract it from the source files.
provider = "scikit_build_core.metadata.regex"
input = "python/finufft/finufft/__init__.py"
input = "finufft/__init__.py"

[tool.cibuildwheel]
# Necessary to see build output from the actual compilation
Expand Down
99 changes: 0 additions & 99 deletions python/finufft/setup.py

This file was deleted.

0 comments on commit c3e3ea3

Please sign in to comment.