Skip to content

Commit d94bb4b

Browse files
author
Kent Milfeld
committed
Changed install.sh to workaround the default python3 access.
1 parent 7ae757e commit d94bb4b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.[0-9]

install.sh

+7
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ if [[ "$haveMPICC" == "1" ]] && [[ "$haveMPIFC" == "1" ]]; then
128128
mpipfile=`ls mpiP*.tar.gz`
129129
mpipdir=`echo ${mpipfile%%.tar.gz}`
130130
tar xzvf ${mpipfile}
131+
[[ -f ./extra/mpiP-3.4.1/make-wrappers.py ]] && sed -i 's@#!/usr/local/bin/python@#!/usr/bin/python2@' ./extra/mpiP-3.4.1/make-wrappers.py
132+
133+
[[ $(hostname -f) =~ ".ls6.tacc" ]] &&
134+
sed -i 's/PYTHON = python$/PYTHON = python2/' ./mpiP-3.4.1/Defs.mak.in &&
135+
sed -i 's/PYTHON = python$/PYTHON = python2/' ./mpiP-3.4.1/Defs.mak && #preserved across install.sh executions
136+
sed -i 's@#!/usr/local/bin/python@#!/usr/bin/python2@' ./mpiP-3.4.1/make-wrappers.py
137+
131138
cd ${mpipdir}
132139
./configure CFLAGS="-g" --enable-demangling --disable-bfd --disable-libunwind --prefix=${REMORA_DIR} | tee -a $BUILD_LOG
133140
make | tee -a $BUILD_LOG

0 commit comments

Comments
 (0)