From 20060d508c64002b655984a8d655abeafd4df325 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Thu, 20 Feb 2020 19:28:03 +0100 Subject: [PATCH] Working on Spack packaging --- INSTALL.rst | 37 ++++++++++++++++++++++++++++++++++--- configure | 8 +++----- 2 files changed, 37 insertions(+), 8 deletions(-) diff --git a/INSTALL.rst b/INSTALL.rst index 979c8edd..80a6e3b1 100644 --- a/INSTALL.rst +++ b/INSTALL.rst @@ -41,7 +41,6 @@ Requirements - |EZFIO| : Easy Fortran Input/Output library generator - |BLAS| and |LAPACK| - `Zlib`_ -- `GNU Patch`_ - |ZeroMQ| : networking library - `GMP `_ : Gnu Multiple Precision Arithmetic Library - |OCaml| compiler with |OPAM| package manager @@ -71,6 +70,16 @@ architecture. Modify it if needed, and run :command:`configure` with Help for installing external dependencies ========================================= +All the dependencies can be installed using ![Spack](https://github.com/spack/spack). +This is the recommended installation procedure: + +```bash +git clone https://github.com/spack/spack.git +source spack/share/spack/setup-env.sh +spack install quantum_package +``` + + Using the :command:`configure` executable ----------------------------------------- @@ -104,7 +113,7 @@ Example: .. note:: - When installing the ocaml package, you will be asked the location of where it should be installed. + When installing the OCaml package, you will be asked the location of where it should be installed. A safe option is to enter the path proposed by the |QP|: QP>> Please install it here: /your_quantum_package_directory/bin @@ -142,6 +151,14 @@ IRPF90 *IRPF90* is a Fortran code generator for programming using the Implicit Reference to Parameters (IRP) method. +If you have *pip* for Python2, you can do + +.. code:: bash + + python2 -m pip install --user irpf90 + +Otherwise, + * Download the latest version of IRPF90 here : ``_ and move the downloaded archive in the :file:`${QP_ROOT}/external` directory @@ -374,7 +391,7 @@ If you have *pip* for Python2, you can do .. code:: bash - pip2 install --user docopt + python2 -m pip install --user docopt Otherwise, @@ -385,3 +402,17 @@ Otherwise, * Copy :file:`docopt-0.6.2/docopt.py` in the :file:`${QP_ROOT}/scripts` directory +resultsFile +----------- + +*resultsFile* is a Python package to extract data from output files of quantum chemistry +codes. + +If you have *pip* for Python2, you can do + +.. code:: bash + + python2 -m pip install --user resultsFile + + + diff --git a/configure b/configure index a1f91fb1..39c888f3 100755 --- a/configure +++ b/configure @@ -8,11 +8,7 @@ eval set -- "$TEMP" export QP_ROOT="$( cd "$(dirname "$0")" ; pwd -P )" echo "QP_ROOT="$QP_ROOT -unset CC -unset CCXX -# Force GCC instead of ICC for dependencies -export CC=gcc # When updating version, update also etc files @@ -101,7 +97,7 @@ while true ; do -i|--install) case "$2" in "") help ; break;; - *) PACKAGES="${PACKAGE} $2" + *) PACKAGES="${PACKAGES} $2" esac shift 2;; -h|-help|--help) @@ -265,6 +261,8 @@ EOF download ${ZEROMQ_URL} "${QP_ROOT}"/external/zeromq.tar.gz execute << EOF + export CC=gcc + export CXX=g++ cd "\${QP_ROOT}"/external tar --gunzip --extract --file zeromq.tar.gz rm zeromq.tar.gz