Skip to content

Commit

Permalink
Include CMake workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LecrisUT committed Apr 8, 2024
1 parent 00e263f commit 4eb8278
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .distro/pybind11.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: gcc
BuildRequires: gcc-c++
# Project CMake dependencies
BuildRequires: catch-devel
BuildRequires: eigen3-devel
# Test dependencies from tests/requirements.txt
# Cannot include the file because requirements are too constrained
BuildRequires: python3dist(build)
Expand Down Expand Up @@ -55,15 +58,20 @@ sed -i -E 's/,?\s*"ninja[^"]*"//' pyproject.toml


%build
%cmake
%cmake_build
# Also running pyproject_wheel to get python metadata files
%pyproject_wheel


%install
%cmake_install
%pyproject_install
%pyproject_save_files pybind11


%check
%ctest
%pytest


Expand Down

0 comments on commit 4eb8278

Please sign in to comment.