From a78d2e4fe6cba8597cb4f029eeebf8e3fee452af Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Nov 29 2023 11:27:36 +0000 Subject: Enable build with Python 3.13+ --- 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