Skip to content

Commit

Permalink
Test: build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shizuo-kaji committed Jan 8, 2025
1 parent 19fe14c commit ec51ac5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "pybind11"]
path = pybind11
url = https://github.com/pybind/pybind11.git
branch = master
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(CMAKE_CXX_FLAGS "-O3")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
find_package(pybind11 CONFIG REQUIRED)
#find_package(pybind11 CONFIG REQUIRED)

# Include directories
include_directories("src/")
Expand All @@ -33,6 +33,9 @@ add_library(tmylib STATIC
src/dense_cubical_grids_T.cpp
)

# Python modules using pybind11
add_subdirectory(pybind11)

pybind11_add_module(cripser src/cubicalripser_pybind.cpp)
target_link_libraries(cripser PRIVATE mylib vmylib)

Expand Down
1 change: 1 addition & 0 deletions pybind11
Submodule pybind11 added at a09cf6
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
]

[build-system]
requires = ["setuptools", "wheel", "scikit-build>=0.13", "cmake>=3.15", "pybind11[cmake]"]
requires = ["scikit-build>=0.13", "cmake>=3.15"]

[tool.cibuildwheel]
archs = "x86_64 arm64" # Build for both architectures
Expand Down

0 comments on commit ec51ac5

Please sign in to comment.