Skip to content

Commit

Permalink
JDBetteridge/python3.13 (#3791)
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge authored Oct 9, 2024
1 parent 4404b5a commit 8521d54
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/source/download.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ packages can be installed into an existing Firedrake installation using
System requirements
-------------------

Firedrake requires Python 3.9 to 3.12. The installation script is
Firedrake requires Python 3.9 to 3.13. The installation script is
tested by CI on Ubuntu 24.04 LTS. On Ubuntu 22.04 or later, the system
installed Python 3 is supported. On MacOS, the homebrew_ installed
Python 3 is supported::
Expand All @@ -126,7 +126,7 @@ they have the system dependencies:
* A Fortran compiler (for PETSc)
* Blas and Lapack
* Git, Mercurial
* Python version 3.9-3.12
* Python version 3.9-3.13
* The Python headers
* autoconf, automake, libtool
* CMake
Expand Down
2 changes: 1 addition & 1 deletion docs/source/install-debug.dot
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ digraph triage {

activate_venv [label="Activate the\nvenv first."];
uninstall_anaconda [label="Deactivate\nAnaconda."];
update_python [label="Get Python 3.9-3.12"];
update_python [label="Get Python 3.9-3.13"];
update_install_script [label="Fetch new\ninstall script"];
get_homebrew [label="Use Homebrew."];
brew_doctor [label="brew doctor"];
Expand Down
1 change: 0 additions & 1 deletion requirements-ext.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cached_property
cachetools
ipython
nbval
packaging
pkgconfig
Expand Down
9 changes: 5 additions & 4 deletions scripts/firedrake-install
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ log = logging.getLogger()

log.info("Running %s" % " ".join(sys.argv))

if sys.version_info >= (3, 13):
print("""\nCan not install Firedrake with Python 3.13 at the moment:
Some wheels are not yet available for Python 3.13 for some required package(s).
Please install with Python 3.12 (or an earlier version >= 3.9).""")
if sys.version_info >= (3, 14):
print("""\nCan not install Firedrake with Python 3.14 at the moment:
Some wheels are not yet available for Python 3.14 for some required package(s).
Please install with Python 3.13 (or an earlier version >= 3.9).""")
sys.exit(1)
elif sys.version_info < (3, 9):
if mode == "install":
Expand Down Expand Up @@ -1705,6 +1705,7 @@ if mode == "install":

# Ensure pip, setuptools, hatchling and wheel are at the latest version.
run_pip(["install", "-U", "setuptools"])
run_pip(["install", "cffi"])
run_pip(["install", "-U", "hatch"])
run_pip(["install", "-U", "editables"])
run_pip(["install", "-U", "pip"])
Expand Down
1 change: 1 addition & 0 deletions tests/output/test_pvd_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from firedrake import *

try:
import vtkmodules.vtkCommonDataModel # noqa: F401
from firedrake.output import VTKFile
except ImportError:
# VTK is not installed
Expand Down

0 comments on commit 8521d54

Please sign in to comment.