Please install the finite element library Firedrake first.

curl -O
python3 firedrake-install

How to install Fireshape

Activate Firedrake’s virtualenv first.

source path/to/firedrake/bin/activate

On Linux, install the patchelf library, e.g.

sudo apt install patchelf

Then install the Rapid Optimization Library along with roltrilinos.

pip3 install --no-cache-dir roltrilinos
pip3 install --no-cache-dir ROL

On Mac, installing ROL from PyPi will fail. Instead, clone pyrol, add its submodules, and install it locally using the following instructions:

git clone -b rol-2.0-checkpointing
git submodule update --init
python -m pip install pyrol/

Now you are ready to install fireshape.

For users:

pip3 install git+

For developers:

git clone
pip install -e fireshape/