Accepting request 1139165 from home:bmwiedemann:branches:devel:languages:python

Add reproducible.patch to avoid embedding a random tmp dir (boo#1062303)

OBS-URL: https://build.opensuse.org/request/show/1139165
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-frozenlist?expand=0&rev=16
This commit is contained in:
Markéta Machová 2024-01-16 14:57:43 +00:00 committed by Git OBS Bridge
parent 20d33a4464
commit 2c1aaea4f2
3 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 16 08:30:56 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add reproducible.patch to avoid embedding a random tmp dir (boo#1062303)
-------------------------------------------------------------------
Mon Jan 8 09:11:26 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -25,6 +25,8 @@ License: Apache-2.0
URL: https://github.com/aio-libs/frozenlist
Source: https://files.pythonhosted.org/packages/source/f/frozenlist/frozenlist-%{version}.tar.gz
Patch1: no-pytest-cov.patch
# PATCH-FIX-OPENSUSE - avoid embedding random tmp dir in .so
Patch2: reproducible.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module expandvars}

15
reproducible.patch Normal file
View File

@ -0,0 +1,15 @@
workaround https://github.com/cython/cython/issues/5949
diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py
index 8bb2ee2..e640738 100644
--- a/packaging/pep517_backend/_backend.py
+++ b/packaging/pep517_backend/_backend.py
@@ -286,7 +286,7 @@ def build_wheel(
"""
with maybe_prebuild_c_extensions(
line_trace_cython_when_unset=False,
- build_inplace=False,
+ build_inplace=True,
config_settings=config_settings,
):
return _setuptools_build_wheel(