Skip to content

Commit 13bbc73

Browse files
committed
[feature] Extract fenics-ufl from dune.module for consistency.
1 parent 8955c2a commit 13bbc73

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

testing/femdgSourceNoVenv.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,26 @@ export DUNE_ENABLE_PYTHONMODULE_PRECOMPILE=ON
77
PYTHON_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
1315
if [ "$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
1828
fi
1929

20-
cd ../repos
21-
2230
FLAGS="-O3 -DNDEBUG"
2331
BUILDDIR=build-cmake
2432

0 commit comments

Comments
 (0)