Use MPI_PYTHON3_SITEARCH
This commit is contained in:
parent
f22d4de92f
commit
ed9755f4a4
3
mpi.prov
3
mpi.prov
@ -51,7 +51,8 @@ if [ -e /etc/profile.d/modules.sh ]; then
|
|||||||
module load $module
|
module load $module
|
||||||
mpi_compiler_for_dir[${MPI_HOME}]=${MPI_COMPILER}
|
mpi_compiler_for_dir[${MPI_HOME}]=${MPI_COMPILER}
|
||||||
mpi_compiler_for_dir[${MPI_FORTRAN_MOD_DIR}]=${MPI_COMPILER}
|
mpi_compiler_for_dir[${MPI_FORTRAN_MOD_DIR}]=${MPI_COMPILER}
|
||||||
mpi_compiler_for_dir[${MPI_PYTHON_SITEARCH}]=${MPI_COMPILER}
|
mpi_compiler_for_dir[${MPI_PYTHON2_SITEARCH}]=${MPI_COMPILER}
|
||||||
|
mpi_compiler_for_dir[${MPI_PYTHON3_SITEARCH}]=${MPI_COMPILER}
|
||||||
module unload $module
|
module unload $module
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
13
mpi.req
13
mpi.req
@ -28,9 +28,6 @@ if [ ! -d "$buildroot" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Try to determine python3 version in the same way that %{python3_version} does
|
|
||||||
PYTHON3_VERSION="$(/usr/bin/python3 -c 'import sys; sys.stdout.write(sys.version[:3])')"
|
|
||||||
|
|
||||||
# Remaining arguments are passed to elfdeps
|
# Remaining arguments are passed to elfdeps
|
||||||
shift
|
shift
|
||||||
elfdepsargs="$@"
|
elfdepsargs="$@"
|
||||||
@ -56,16 +53,10 @@ if [ -e /etc/profile.d/modules.sh ]; then
|
|||||||
module load $module
|
module load $module
|
||||||
mpi_compiler_for_dir[${MPI_HOME}]=${MPI_COMPILER}
|
mpi_compiler_for_dir[${MPI_HOME}]=${MPI_COMPILER}
|
||||||
mpi_compiler_for_dir[${MPI_FORTRAN_MOD_DIR}]=${MPI_COMPILER}
|
mpi_compiler_for_dir[${MPI_FORTRAN_MOD_DIR}]=${MPI_COMPILER}
|
||||||
mpi_compiler_for_dir[${MPI_PYTHON_SITEARCH}]=${MPI_COMPILER}
|
mpi_compiler_for_dir[${MPI_PYTHON2_SITEARCH}]=${MPI_COMPILER}
|
||||||
if [ -n "${MPI_PYTHON_SITEARCH}" -a -n "${PYTHON3_VERSION}" ]; then
|
mpi_compiler_for_dir[${MPI_PYTHON3_SITEARCH}]=${MPI_COMPILER}
|
||||||
if [ -z "${MPI_PYTHON3_SITEARCH}" ]; then
|
|
||||||
MPI_PYTHON3_SITEARCH="${MPI_PYTHON_SITEARCH/2.7/${PYTHON3_VERSION}}"
|
|
||||||
fi
|
|
||||||
mpi_compiler_for_dir[${MPI_PYTHON3_SITEARCH}]=${MPI_COMPILER}
|
|
||||||
fi
|
|
||||||
mpi_lib_for_compiler[${MPI_COMPILER}]=${MPI_LIB}
|
mpi_lib_for_compiler[${MPI_COMPILER}]=${MPI_LIB}
|
||||||
module unload $module
|
module unload $module
|
||||||
unset MPI_PYTHON3_SITEARCH
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user