mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
Include CMake workflow
This commit is contained in:
parent
798fec8c79
commit
cbfcfb8e7b
@ -14,6 +14,9 @@ BuildRequires: cmake
|
|||||||
BuildRequires: ninja-build
|
BuildRequires: ninja-build
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
# Project CMake dependencies
|
||||||
|
BuildRequires: catch-devel
|
||||||
|
BuildRequires: eigen3-devel
|
||||||
# Test dependencies from tests/requirements.txt
|
# Test dependencies from tests/requirements.txt
|
||||||
# Cannot include the file because requirements are too constrained
|
# Cannot include the file because requirements are too constrained
|
||||||
BuildRequires: python3dist(build)
|
BuildRequires: python3dist(build)
|
||||||
@ -56,15 +59,20 @@ sed -i -E 's/,?\s*"ninja[^"]*"//' pyproject.toml
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%cmake
|
||||||
|
%cmake_build
|
||||||
|
# Also running pyproject_wheel to get python metadata files
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%cmake_install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%pyproject_save_files pybind11
|
%pyproject_save_files pybind11
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%ctest
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user