[packages/python3-pytest_codspeed] Always build extension, regardless of arch

arekm arekm at pld-linux.org
Mon Feb 24 10:22:07 CET 2025


commit 5e8aeb350cda7de88ad62ce09fd3373c4d74650a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Feb 24 09:12:59 2025 +0100

    Always build extension, regardless of arch

 noarchlimit.patch            | 12 ++++++++++++
 python3-pytest_codspeed.spec |  3 +++
 2 files changed, 15 insertions(+)
---
diff --git a/python3-pytest_codspeed.spec b/python3-pytest_codspeed.spec
index 9c9ea35..5b9121e 100644
--- a/python3-pytest_codspeed.spec
+++ b/python3-pytest_codspeed.spec
@@ -11,6 +11,7 @@ License:	MIT
 Group:		Libraries/Python
 Source0:	https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
 # Source0-md5:	1af7148ae89f3820b3a3778312ff3b60
+Patch0:		noarchlimit.patch
 URL:		https://pypi.org/project/pytest-codspeed/
 BuildRequires:	python3-build
 BuildRequires:	python3-installer
@@ -31,8 +32,10 @@ written with it, you can start using pytest-codspeed right away.
 
 %prep
 %setup -q -n %{module}-%{version}
+%patch -P0 -p1
 
 %build
+PYTEST_CODSPEED_FORCE_EXTENSION_BUILD=1; export PYTEST_CODSPEED_FORCE_EXTENSION_BUILD
 %py3_build_pyproject
 
 %if %{with tests}
diff --git a/noarchlimit.patch b/noarchlimit.patch
new file mode 100644
index 0000000..83f7098
--- /dev/null
+++ b/noarchlimit.patch
@@ -0,0 +1,12 @@
+diff -ur pytest_codspeed-3.2.0.org/setup.py pytest_codspeed-3.2.0/setup.py
+--- pytest_codspeed-3.2.0.org/setup.py	2025-01-31 15:23:55.000000000 +0100
++++ pytest_codspeed-3.2.0/setup.py	2025-02-24 09:12:29.210730037 +0100
+@@ -20,7 +20,7 @@
+ 
+ print(f"System: {system} ({current_arch})")
+ 
+-IS_EXTENSION_BUILDABLE = system == "Linux" and current_arch in [
++IS_EXTENSION_BUILDABLE = 1 or system == "Linux" and current_arch in [
+     "x86_64",
+     "aarch64",
+ ]
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest_codspeed.git/commitdiff/5e8aeb350cda7de88ad62ce09fd3373c4d74650a



More information about the pld-cvs-commit mailing list