Skip to content

Commit

Permalink
Do not specify numpy>=2 and tweak install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjward committed Nov 26, 2024
1 parent 867337f commit 74a3f85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions docs/source/download.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,11 @@ Firedrake has experimental support for installing using ``pip``, avoiding the ne
Requirements
~~~~~~~~~~~~

* An activated virtual environment.
* All the system requirements listed in :ref:`system-requirements`.
* A Firedrake-compatible PETSc installation (using our `fork of PETSc <https://github.com/firedrakeproject/petsc.git>`_). The set of flags passed to PETSc can be retrieved by passing the command ``--show-petsc-configure-options`` to ``firedrake-install``.
* `libsupermesh <https://github.com/firedrakeproject/libsupermesh.git>`_ to be installed.
* The following environment variables to be set:
* `libsupermesh <https://github.com/firedrakeproject/libsupermesh.git>`_ to be installed inside the virtual environment (see `here <https://github.com/firedrakeproject/firedrake/blob/master/.github/workflows/pip.yml>`_ for an example of how to do this).
* The following environment variables to be set:

* ``PETSC_DIR`` and ``PETSC_ARCH`` to point to the correct location for the PETSc installation.
* ``HDF5_DIR`` to ``$PETSC_DIR/$PETSC_ARCH``.
Expand All @@ -254,8 +255,6 @@ Having set up this environment, Firedrake can now be installed with the command:

pip install --no-binary mpi4py,h5py git+https://github.com/firedrakeproject/firedrake.git

We recommend installing Firedrake in a Python virtual environment (venv).

Removing Firedrake
------------------
Firedrake and its dependencies can be removed by deleting the Firedrake
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies = [
"mpi4py",
"h5py",
"petsc4py",
"numpy>=2.0",
"numpy",
"packaging",
"pkgconfig",
"progress",
Expand Down Expand Up @@ -90,7 +90,7 @@ requires = [
"Cython>=3.0",
"pybind11",
"pkgconfig",
"numpy>=2.0",
"numpy",
"mpi4py",
"petsc4py",
"rtree>=1.2",
Expand Down

0 comments on commit 74a3f85

Please sign in to comment.