File tree 1 file changed +10
-0
lines changed 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ BuildRequires: cmake
14
14
BuildRequires: ninja-build
15
15
BuildRequires: gcc
16
16
BuildRequires: gcc-c++
17
+ # Test dependencies from tests/requirements.txt
18
+ # Cannot include the file because requirements are too constrained
19
+ BuildRequires: python3dist(build)
20
+ BuildRequires: python3dist(numpy)
21
+ BuildRequires: python3dist(pytest)
22
+ BuildRequires: python3dist(pytest-timeout)
23
+ BuildRequires: python3dist(scipy)
17
24
18
25
%global _description %{expand:
19
26
pybind11 is a lightweight header-only library that exposes C++ types
@@ -39,6 +46,9 @@ BuildRequires: pybind11-devel
39
46
40
47
%prep
41
48
%autosetup -n pybind11-%{version }
49
+ # Remove cmake and ninja from buildrequires
50
+ sed -i -E ' s/,?\s*"cmake[^"]*"//' pyproject.toml
51
+ sed -i -E ' s/,?\s*"ninja[^"]*"//' pyproject.toml
42
52
43
53
44
54
%generate_buildrequires
You can’t perform that action at this time.
0 commit comments