14
0

- Add patch allow-only-direct-compilation.patch:

* Allow forcing direct compilation.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=257
This commit is contained in:
2023-12-22 04:11:50 +00:00
committed by Git OBS Bridge
parent 1af2c78f78
commit 32e544bfcd
3 changed files with 42 additions and 2 deletions

View File

@@ -47,6 +47,8 @@ Source: https://files.pythonhosted.org/packages/source/s/setuptools/setu
Patch0: sort-for-reproducibility.patch
# PATCH-FIX-OPENSUSE fix-get-python-lib-python38.patch bsc#1204395
Patch2: fix-get-python-lib-python38.patch
# PATCH-FIX-OPENSUSE Allow forcing direct compilation, see gh#pypa/setuptools#4164
Patch3: allow-only-direct-compilation.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -103,8 +105,7 @@ rm -f setuptools/*.exe
%install
%if !%{with test} && !%{with wheel}
# workaround python 3.12 distutils import
export PYTHONDONTWRITEBYTECODE=1
export SETUPTOOLS_FORCE_DIRECT=True
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif