mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-25 13:03:28 +01:00
Update configure
This commit is contained in:
parent
98b36f1185
commit
882a8fd100
28
configure
vendored
28
configure
vendored
@ -181,8 +181,7 @@ function install_exe() {
|
|||||||
NAME=$1
|
NAME=$1
|
||||||
shift
|
shift
|
||||||
if [[ $(find_exe $@) = $(not_found) ]] ; then
|
if [[ $(find_exe $@) = $(not_found) ]] ; then
|
||||||
# spack add $NAME
|
spack add $NAME
|
||||||
SPACK_LINE+="^$NAME"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -191,38 +190,33 @@ function install_lib() {
|
|||||||
NAME=$1
|
NAME=$1
|
||||||
shift
|
shift
|
||||||
if [[ $(find_lib $@) = $(not_found) ]] ; then
|
if [[ $(find_lib $@) = $(not_found) ]] ; then
|
||||||
# spack add $NAME
|
spack add $NAME
|
||||||
SPACK_LINE+="^$NAME"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
shift
|
|
||||||
if [[ $(find_python2_lib $@) = $(not_found) ]] ; then
|
|
||||||
# spack add $NAME
|
|
||||||
SPACK_LINE+="^$NAME"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function install_spack_packages() {
|
function install_spack_packages() {
|
||||||
spack env deactivate
|
spack env deactivate
|
||||||
spack env create qp || :
|
spack env create qp || :
|
||||||
spack env activate qp
|
spack env activate qp
|
||||||
spack add python@2.7:2.8
|
spack add python@2.7:2.8
|
||||||
spack add py-docopt ^python@2.7:2.8
|
# spack add py-docopt ^python@2.7:2.8
|
||||||
spack add py-resultsfile@1.0 ^python@2.7:2.8
|
# spack add py-resultsfile@1.0 ^python@2.7:2.8
|
||||||
spack add py-irpf90 ^python@2.7:2.8
|
# spack add py-irpf90 ^python@2.7:2.8
|
||||||
spack add bats
|
spack add bats
|
||||||
spack add ninja ^python@2.7:2.8
|
spack add ninja ^python@2.7:2.8
|
||||||
spack add f77-zmq ^libzmq~libsodium ^python@2.7:2.8
|
spack add f77-zmq ^libzmq~libsodium ^python@2.7:2.8
|
||||||
spack add opam@2.0:
|
spack add opam@2.0: ^ocaml@4.09.0
|
||||||
|
if [[ $(find_exe ifort) = $(not_found) ]] ; then
|
||||||
spack add openblas threads=openmp
|
spack add openblas threads=openmp
|
||||||
|
fi
|
||||||
spack concretize -f
|
spack concretize -f
|
||||||
spack install
|
spack install
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_python_packages() {
|
function install_python_packages() {
|
||||||
PYTHON_PACKAGES="irpf90 docopt resultsFile basis-set-exchange"
|
PYTHON_PACKAGES="irpf90 docopt resultsFile" # basis-set-exchange"
|
||||||
pip install $PYTHON_PACKAGES
|
pip install $PYTHON_PACKAGES
|
||||||
if [[ $? -ne 0 ]] ; then
|
if [[ $? -ne 0 ]] ; then
|
||||||
pip install --user $PYTHON_PACKAGES
|
pip install --user $PYTHON_PACKAGES
|
||||||
@ -232,7 +226,7 @@ function install_python_packages() {
|
|||||||
|
|
||||||
function install_ocaml_packages() {
|
function install_ocaml_packages() {
|
||||||
OCAML_PACKAGES="ocamlbuild cryptokit zmq sexplib ppx_sexp_conv ppx_deriving getopt"
|
OCAML_PACKAGES="ocamlbuild cryptokit zmq sexplib ppx_sexp_conv ppx_deriving getopt"
|
||||||
OPAMROOT=${OPAMROOT:-${QP_ROOT}/external/opam}
|
export OPAMROOT=${OPAMROOT:-${QP_ROOT}/external/opam}
|
||||||
mkdir -p $OPAMROOT
|
mkdir -p $OPAMROOT
|
||||||
opam init --disable-sandboxing --compiler=4.10.0 --no-setup --root=$OPAMROOT
|
opam init --disable-sandboxing --compiler=4.10.0 --no-setup --root=$OPAMROOT
|
||||||
eval $(opam env)
|
eval $(opam env)
|
||||||
@ -280,8 +274,8 @@ install_ocaml_packages
|
|||||||
source quantum_package.rc
|
source quantum_package.rc
|
||||||
if [[ -n $CONFIG ]] ; then
|
if [[ -n $CONFIG ]] ; then
|
||||||
configure_ninja_build
|
configure_ninja_build
|
||||||
set_environment_variables
|
|
||||||
fi
|
fi
|
||||||
|
set_environment_variables
|
||||||
|
|
||||||
|
|
||||||
printf "\e[0;34m"
|
printf "\e[0;34m"
|
||||||
|
Loading…
Reference in New Issue
Block a user