From 30b44e027bdef844d7e5829d6738d80948a96243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 6 Jan 2025 20:05:01 +0100 Subject: [PATCH] Allow the bundled pyo3 to build this with unsupported Python versions [skip changelog] --- python-orjson.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-orjson.spec b/python-orjson.spec index 85d4f16..f9283be 100644 --- a/python-orjson.spec +++ b/python-orjson.spec @@ -142,6 +142,11 @@ done export RUSTFLAGS='%{build_rustflags}' %cargo_license_summary %{cargo_license} > LICENSES.dependencies +# Fedora's pyo3 is patched to not check Python version when building RPM packages. +# However, this uses a bundled version without the patch. +# Rather than patching it, we set the environment variable, +# which allows us to test this package with development Python versions. +export UNSAFE_PYO3_SKIP_VERSION_CHECK=1 %pyproject_wheel