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