Enable build with Python 3.13+
This commit is contained in:
parent
9c7d8c9833
commit
a78d2e4fe6
@ -132,6 +132,11 @@ cat >> pyproject.toml << EOF
|
|||||||
setup = ['-Dblas=%{blaslib}%{blasvar}', '-Dlapack=%{blaslib}%{blasvar}'%{!?with_pythran:, '-Duse-pythran=false'}]
|
setup = ['-Dblas=%{blaslib}%{blasvar}', '-Dlapack=%{blaslib}%{blasvar}'%{!?with_pythran:, '-Duse-pythran=false'}]
|
||||||
EOF
|
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
|
# Docs won't build unless the .dat files are specified here
|
||||||
sed -i 's/metadata = dict(/metadata = dict(package_data={"": ["*.dat"]},/' _setup.py
|
sed -i 's/metadata = dict(/metadata = dict(package_data={"": ["*.dat"]},/' _setup.py
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user