From a78d2e4fe6cba8597cb4f029eeebf8e3fee452af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 21 Nov 2023 20:26:52 +0100 Subject: [PATCH] Enable build with Python 3.13+ --- scipy.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scipy.spec b/scipy.spec index dd49912..59b43ca 100644 --- a/scipy.spec +++ b/scipy.spec @@ -132,6 +132,11 @@ cat >> pyproject.toml << EOF setup = ['-Dblas=%{blaslib}%{blasvar}', '-Dlapack=%{blaslib}%{blasvar}'%{!?with_pythran:, '-Duse-pythran=false'}] EOF +# Enable build with Python 3.13+ +# Upstream only allows Python pre-releases in git HEAD, not in releases. +# However in Fedora, we actively build packages with Python pre-releases very soon. +sed -i 's/requires-python = ">=3.9,<3.13"/requires-python = ">=3.9"/' pyproject.toml + # Docs won't build unless the .dat files are specified here sed -i 's/metadata = dict(/metadata = dict(package_data={"": ["*.dat"]},/' _setup.py