Skip to content

Commit 4eb8278

Browse files
committed
Include CMake workflow
1 parent 00e263f commit 4eb8278

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.distro/pybind11.spec

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ BuildRequires: cmake
1313
BuildRequires: ninja-build
1414
BuildRequires: gcc
1515
BuildRequires: gcc-c++
16+
# Project CMake dependencies
17+
BuildRequires: catch-devel
18+
BuildRequires: eigen3-devel
1619
# Test dependencies from tests/requirements.txt
1720
# Cannot include the file because requirements are too constrained
1821
BuildRequires: python3dist(build)
@@ -55,15 +58,20 @@ sed -i -E 's/,?\s*"ninja[^"]*"//' pyproject.toml
5558

5659

5760
%build
61+
%cmake
62+
%cmake_build
63+
# Also running pyproject_wheel to get python metadata files
5864
%pyproject_wheel
5965

6066

6167
%install
68+
%cmake_install
6269
%pyproject_install
6370
%pyproject_save_files pybind11
6471

6572

6673
%check
74+
%ctest
6775
%pytest
6876

6977

0 commit comments

Comments
 (0)