Use flit_core to build the wheel

python3-flit is too old in EPEL 8. It's not necessary in Fedora, either.
It just pulls in extra dependencies.
This commit is contained in:
Maxwell G 2022-10-10 17:05:03 -05:00
parent d49fb37ae7
commit 40b6f6a0e4
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

View File

@ -16,7 +16,7 @@ BuildArch: noarch
BuildRequires: python3-pip BuildRequires: python3-pip
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-flit BuildRequires: python3-flit-core
%if %{with docs} %if %{with docs}
BuildRequires: python3-sphinx BuildRequires: python3-sphinx
@ -62,7 +62,7 @@ rm -f %{pypi_name}/*.exe
# and upstream does not want one # and upstream does not want one
# https://github.com/takluyver/flit/issues/74 # https://github.com/takluyver/flit/issues/74
# we use flit to create a wheel from sources # we use flit to create a wheel from sources
flit build --format wheel %{python3} -m flit_core.wheel
%if %{with docs} %if %{with docs}
# generate html docs # generate html docs