Avoid python-build dependency

%pyproject_wheel already pulls in setuptools and handles the build
without any additional dependencies.  python-build is also not included
in RHEL.
This commit is contained in:
Yaakov Selkowitz 2024-01-05 01:32:26 -05:00
parent f1c05a7cec
commit cc8ba9270c
2 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,31 @@
%pyproject_wheel already pulls in setuptools and handles the build
without any additional dependencies. python-build is also not included
in RHEL.
pyproject.toml changes are Fedora-specific
setup.cfg changes from commit e27b28c6b3ca8c9155bff38891189eb73deab611
diff --git a/pyproject.toml b/pyproject.toml
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,3 @@
-[build-system]
-build-backend = "setuptools.build_meta"
-requires = ["setuptools"]
# for black and mypy, set the lowest Python version supported
[tool.black]
diff --git a/setup.cfg b/setup.cfg
--- a/setup.cfg
+++ b/setup.cfg
@@ -40,10 +40,6 @@ classifiers =
[options]
zip_safe = False
python_requires = >=3.6
-install_requires = setuptools
-setup_requires =
- setuptools
- build
include_package_data = True
packages = find:

View File

@ -14,6 +14,9 @@ License: MIT
URL: http://www.scons.org
Source0: %{pypi_source}
Source1: https://scons.org/doc/production/scons-doc-%{version}.tar.gz
# Avoid unnecessary dependency on python-build
Patch0: 0001-Remove-unnecessary-build-deps.patch
BuildArch: noarch
BuildRequires: make
@ -76,11 +79,10 @@ defined Builder and/or Scanner objects.
%if 0%{with prebuilt_doc}
%autosetup -n SCons-%{version} -N
%setup -n SCons-%{version} -q -T -D -a 1
cd ..
%else
%autosetup -N -T -b 0
cd ..
%endif
%autopatch -p1
%generate_buildrequires
%pyproject_buildrequires -x tests