10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-09-27 03:51:01 +02:00
quantum_package/quantum_package.rc.default
Thomas Applencourt 0cfef83090 Fix a few things (#76)
* Check if EZFIO is installed when sourcing qp.rc. Maybe need to be done elsewhere

* Better message for f77zmq

* Add better error message for Opam (tell people to install ocaml)

* Better message for Opam location

* Ezfio.sh is not an executable

* Fix qp_modul install with the new pluging hierachy

* Port back the LIB fixe

* Add bats install script for test (How travis was working?)

* Update travis

* Fix important output problem

* Update configure

* Update quantum_package.rc.default
2018-12-09 17:49:26 +01:00

52 lines
1.7 KiB
Plaintext

# This line should contain the location of your quantum_package directory
export QP_ROOT=
# Include here the optional external libraries to link with your binaries
# export QP_LIB=" -lint"
#### BEGIN Don't modify
export IRPF90=${QP_ROOT}/bin/irpf90
export NINJA=${QP_ROOT}/bin/ninja
export QP_EZFIO=${QP_ROOT}/external/ezfio
export QP_PYTHON=${QP_ROOT}/scripts:${QP_ROOT}/scripts/ezfio_interface:${QP_ROOT}/scripts/utility:${QP_ROOT}/scripts/module:${QP_ROOT}/scripts/pseudo:${QP_ROOT}/scripts/compilation:${QP_EZFIO}/Python:${QP_ROOT}/external/Python:${QP_ROOT}/external/Python/resultsFile
function qp_prepend_export () {
eval "value_1="\${$1}""
if [[ -z $value_1 ]] ; then
echo "${2}:"
else
echo "${2}:${value_1}"
fi
}
export PYTHONPATH=$(qp_prepend_export "PYTHONPATH" "${QP_EZFIO}/Python":"${QP_PYTHON}")
export PATH=$(qp_prepend_export "PATH" "${QP_PYTHON}":"${QP_ROOT}"/bin:"${QP_ROOT}"/ocaml)
export LD_LIBRARY_PATH=$(qp_prepend_export "LD_LIBRARY_PATH" "${QP_ROOT}"/lib:"${QP_ROOT}"/lib64)
export LIBRARY_PATH=$(qp_prepend_export "LIBRARY_PATH" "${QP_ROOT}"/lib:"${QP_ROOT}"/lib64)
export C_INCLUDE_PATH=$(qp_prepend_export "C_INCLUDE_PATH" "${QP_ROOT}"/include)
if [[ $SHELL == "/bin/bash" ]] ; then
if [[ -f ${QP_EZFIO}/Bash/ezfio.sh ]]; then
source ${QP_EZFIO}/Bash/ezfio.sh
else
echo "EZFIO is not installed."
fi
fi
#### END Don't modify
# Choose the correct network interface if the default one is incorrect
# export QP_NIC=ib0
# export QP_NIC=eth0
# Comment these lines if you have a system-wide OCaml installation
export OPAMROOT=${OPAMROOT:-${QP_ROOT}/external/opam}
source ${OPAMROOT}/opam-init/init.sh > /dev/null 2> /dev/null || true