Generate build-time deps dynamically
%pyproject_* macros might get different deps in the future, specifying the deps manually is not future-proof. This will also get us runtime deps, so we can run import checks or tests (in the future). We still list Cython, as upstream does not advertise the need for it anywhere.
This commit is contained in:
parent
cbc25f21be
commit
d21726c82c
@ -12,10 +12,7 @@ Source0: https://github.com/pythongssapi/%{name}/releases/download/v%{ver
|
||||
BuildRequires: krb5-devel >= 1.19
|
||||
BuildRequires: gcc
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-Cython
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-wheel
|
||||
|
||||
# For autosetup
|
||||
BuildRequires: git-core
|
||||
@ -37,6 +34,9 @@ Requires: krb5-libs >= 1.19
|
||||
%prep
|
||||
%autosetup -S git -n %{name}-%{version}
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user