Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- "v*"
pull_request:
branches: ["main", "master"]
workflow_dispatch:

permissions:
Expand Down
8 changes: 7 additions & 1 deletion python_bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ if(PYTHON_EXECUTABLE AND NOT Python_EXECUTABLE)
endif()

# 2. Locate Python, NumPy, and pybind11 from the active Python environment.
find_package(Python REQUIRED COMPONENTS Interpreter Development NumPy)
# CMake 3.18+ can request only the module-development files. This avoids
# requiring libpython for embedding, which manylinux images do not provide.
if(CMAKE_VERSION VERSION_LESS 3.18)
find_package(Python REQUIRED COMPONENTS Interpreter Development NumPy)
else()
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module NumPy)
endif()
find_package(pybind11 CONFIG REQUIRED)

# 3. Define the shared pybind11 module.
Expand Down
Loading