File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -7,18 +7,26 @@ export DUNE_ENABLE_PYTHONMODULE_PRECOMPILE=ON
77PYTHON_INTERP=` which python3`
88# PYTHON_INTERP=/usr/bin/python3
99
10+ cd ../repos
11+
1012# install missing python packages in users local environment
1113# Note: wheel and setuptools may not be required
1214# we only do this for Mac OS, ubuntu has the necessary packages installed
1315if [ " $3 " == " macOS" ]; then
16+ # extract fenics-ufl version from dune-fem/dune.module for consistency
17+ FENICSUFL=` grep -o " fenics-ufl[==]*20[0-9]*.[0-9]*.[0-9]*" dune-fem/dune.module`
18+
19+ if [ " $FENICSUFL " == " " ]; then
20+ echo " fenics version not found in dune-fem/dune.module!"
21+ exit 1
22+ fi
23+
1424 # dune-common dependencies
1525 $PYTHON_INTERP -m pip install --user --break-system-packages -U jinja2 wheel setuptools mpi4py numpy ninja
1626 # dune-fem dependencies
17- $PYTHON_INTERP -m pip install --user --break-system-packages -U scipy fenics-ufl==2022.2.0 matplotlib
27+ $PYTHON_INTERP -m pip install --user --break-system-packages -U scipy $FENICSUFL matplotlib
1828fi
1929
20- cd ../repos
21-
2230FLAGS=" -O3 -DNDEBUG"
2331BUILDDIR=build-cmake
2432
You can’t perform that action at this time.
0 commit comments