-
Notifications
You must be signed in to change notification settings - Fork 8
/
configure.sh
executable file
·27 lines (26 loc) · 1.06 KB
/
configure.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
#==========================================#
mkdir build
cd build
#==========================================#
#First we clone spack and change his way for installing
git clone --depth=1 -b v0.20.3 https://github.com/spack/spack.git
cp ../config-spack.yaml spack/etc/spack/defaults/config.yaml
source ./spack/share/spack/setup-env.sh
#==========================================
#mandatory if you have already used spack on your computer
spack clean -m
#==========================================
git clone --depth=1 https://github.com/LIHPC-Computational-Geometry/spack_recipes_meshing.git
spack repo add ./spack_recipes_meshing/meshing
spack repo add ./spack_recipes_meshing/meshing_supersede
spack compiler find
spack external find cmake
#==========================================
spack install --no-checksum gmds@main+python+blocking~cgns
#==========================================
# testing the install
export PYTHONPATH=spack/opt/spack/gmds/lib:$PYTHONPATH
spack load py-pytest
pytest gmds/pygmds/tst gmds/test_samples
#==========================================