Skip to content

Commit

Permalink
Adjust buildrequires
Browse files Browse the repository at this point in the history
- Remove cmake and ninja from buildrequires
- Add the tests/requirements.txt
  • Loading branch information
LecrisUT committed Apr 8, 2024
1 parent 2db9968 commit b66ab7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .distro/pybind11.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: gcc
BuildRequires: gcc-c++
# Test dependencies from tests/requirements.txt
# Cannot include the file because requirements are too constrained
BuildRequires: python3dist(build)
BuildRequires: python3dist(numpy)
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pytest-timeout)
BuildRequires: python3dist(scipy)

%global _description %{expand:
pybind11 is a lightweight header-only library that exposes C++ types
Expand All @@ -38,6 +45,9 @@ BuildRequires: pybind11-devel

%prep
%autosetup -n pybind11-%{version}
# Remove cmake and ninja from buildrequires
sed -i -E 's/,?\s*"cmake[^"]*"//' pyproject.toml
sed -i -E 's/,?\s*"ninja[^"]*"//' pyproject.toml


%generate_buildrequires
Expand Down

0 comments on commit b66ab7c

Please sign in to comment.