]> https://gitweb.dealii.org/ - candi.git/commitdiff
Fix SLEPc package 78/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 13 May 2018 22:55:40 +0000 (00:55 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 13 May 2018 22:56:18 +0000 (00:56 +0200)
deal.II-toolchain/packages/slepc.package

index 20cf378c0bb7ae957514bc12e5476068f60a40ac..ed45fb8f5bc39976d011de9429d1372080af9dae 100644 (file)
@@ -12,6 +12,21 @@ BUILDCHAIN=custom
 
 INSTALL_PATH=${INSTALL_PATH}/${NAME}
 
+# Note that SLEPc ./configure currently does not support python3, but some
+# distros might ship with python3 as the default "python".  So select python2
+# or python2.7 if available, otherwise use python or what the user supplied in
+# PYTHON_INTERPRETER.
+if builtin command -v python2 --version > /dev/null; then
+  default PYTHON_INTERPRETER="python2"
+fi
+if builtin command -v python2.7 --version > /dev/null; then
+  default PYTHON_INTERPRETER="python2.7"
+fi
+default PYTHON_INTERPRETER="python"
+
+
+##############################################################################
+
 if [ -z "${PETSC_DIR}" ]; then
     cecho ${BAD} "slepc: error petsc variable PETSC_DIR not found."
     exit 1
@@ -24,7 +39,7 @@ package_specific_setup () {
     # make sure no other invalid SLEPC_DIR is set:
     unset SLEPC_DIR
 
-    ./configure --prefix=${INSTALL_PATH} ${CONFOPTS}
+    ${PYTHON_INTERPRETER} ./configure --prefix=${INSTALL_PATH} ${CONFOPTS}
     quit_if_fail "slepc ./configure failed"
     
     make SLEPC_DIR=$PWD PETSC_DIR=${PETSC_DIR} all install

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.