File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,11 @@ if(CMAKE_CUDA_COMPILER)
3232 find_package (Python 3.8
3333 REQUIRED COMPONENTS Interpreter Development.Module
3434 OPTIONAL_COMPONENTS Development.SABIModule)
35- set (XLA_DIR ${Python_SITELIB} /jaxlib/include )
36- message (STATUS "XLA_DIR: ${XLA_DIR} " )
35+ execute_process (
36+ COMMAND "${Python_EXECUTABLE} "
37+ "-c" "from jax.extend import ffi; print(ffi.include_dir())"
38+ OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE XLA_DIR)
39+ message (STATUS "XLA include directory: ${XLA_DIR} " )
3740
3841 # Detect the installed nanobind package and import it into CMake
3942 find_package (nanobind CONFIG REQUIRED)
Original file line number Diff line number Diff line change 22requires = [
33 " setuptools" ,
44 " setuptools-scm" ,
5- " scikit-build-core >=0.4.3" ,
6- " nanobind >=1.3.2"
5+ " scikit-build-core >=0.11" ,
6+ " nanobind >=2.0,<2.6" ,
7+ " jax >= 0.4.0"
78]
89build-backend = " scikit_build_core.build"
910
@@ -78,11 +79,12 @@ tests = [
7879
7980[tool .scikit-build ]
8081# Protect the configuration against future changes in scikit-build-core
81- minimum-version = " 0.4 "
82+ minimum-version = " 0.8 "
8283# Setuptools-style build caching in a local directory
8384build-dir = " build/{wheel_tag}"
8485# Build stable ABI wheels for CPython 3.12+
8586wheel.py-api = " cp312"
87+ cmake.build-type = " Release"
8688metadata.version.provider = " scikit_build_core.metadata.setuptools_scm"
8789sdist.include = [" s2fft/_version.py" ]
8890
You can’t perform that action at this time.
0 commit comments