forked from pool/python-setuptools
- 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:
@@ -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
|
||||
|
Reference in New Issue
Block a user