Skip to content

Commit cbfcfb8

Browse files
committed
Include CMake workflow
1 parent 798fec8 commit cbfcfb8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.distro/pybind11.spec

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ BuildRequires: cmake
1414
BuildRequires: ninja-build
1515
BuildRequires: gcc
1616
BuildRequires: gcc-c++
17+
# Project CMake dependencies
18+
BuildRequires: catch-devel
19+
BuildRequires: eigen3-devel
1720
# Test dependencies from tests/requirements.txt
1821
# Cannot include the file because requirements are too constrained
1922
BuildRequires: python3dist(build)
@@ -56,15 +59,20 @@ sed -i -E 's/,?\s*"ninja[^"]*"//' pyproject.toml
5659

5760

5861
%build
62+
%cmake
63+
%cmake_build
64+
# Also running pyproject_wheel to get python metadata files
5965
%pyproject_wheel
6066

6167

6268
%install
69+
%cmake_install
6370
%pyproject_install
6471
%pyproject_save_files pybind11
6572

6673

6774
%check
75+
%ctest
6876
%pytest
6977

7078

0 commit comments

Comments
 (0)