Skip to content

Commit

Permalink
changed to pure python syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pfebrer authored and zerothi committed Jun 19, 2024
1 parent 289b685 commit 220b2ec
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 87 deletions.
13 changes: 12 additions & 1 deletion src/sisl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
foreach(source _indices _math_small _sparse_grid_ops)
foreach(source _indices _math_small)
add_cython_library(
SOURCE ${source}.pyx
LIBRARY ${source}
Expand All @@ -8,6 +8,17 @@ foreach(source _indices _math_small _sparse_grid_ops)
DESTINATION ${SKBUILD_PROJECT_NAME})
endforeach()

# Python files that can be compiled with cython (Pure Python syntax)
foreach(source _sparse_grid_ops)
add_cython_library(
SOURCE ${source}.py
LIBRARY ${source}
OUTPUT ${source}_C
)
install(TARGETS ${source} LIBRARY
DESTINATION ${SKBUILD_PROJECT_NAME})
endforeach()

# Add other sub-directories
add_subdirectory("_core")
add_subdirectory("io")
Expand Down
Loading

0 comments on commit 220b2ec

Please sign in to comment.