diff --git a/.gitmodules b/.gitmodules index e69de29..a84f300 100644 --- a/.gitmodules +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "pybind11"] + path = pybind11 + url = https://github.com/pybind/pybind11.git + branch = master diff --git a/CMakeLists.txt b/CMakeLists.txt index 1179337..d7f44c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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/") @@ -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) diff --git a/pybind11 b/pybind11 new file mode 160000 index 0000000..a09cf61 --- /dev/null +++ b/pybind11 @@ -0,0 +1 @@ +Subproject commit a09cf61844f81f41eb56e22256beeac27b755010 diff --git a/pyproject.toml b/pyproject.toml index 82ee6d1..094b47e 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -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