Skip to content

Commit 092d1a9

Browse files
committed
added a build script using spack
1 parent 49e4cd7 commit 092d1a9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

build_spack.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#==========================================
2+
# First get a spack release
3+
git clone --depth=1 -b v0.20.1 https://github.com/spack/spack.git
4+
#==========================================
5+
# can be mandatory if you have already used back on your computer
6+
# delete the .spack n the home of the user
7+
#==========================================
8+
git clone https://github.com/LIHPC-Computational-Geometry/spack_recipes.git
9+
cp ./spack_recipes/config/packages.yaml ./spack/etc/spack/
10+
. ./spack/share/spack/setup-env.sh
11+
spack repo add ./spack_recipes/meshing
12+
spack repo add ./spack_recipes/meshing_supersede
13+
spack compiler find
14+
spack external find cmake
15+
#==========================================
16+
git clone [email protected]:LIHPC-Computational-Geometry/magix3d.git
17+
#==========================================
18+
spack spec magix3d ^vtk-maillage~opengl2+qt~mpi ^hdf5~mpi ^cgns~mpi ^mesquite~mpi
19+
spack dev-build -d ./magix3d [email protected] ^vtk-maillage~opengl2+qt~mpi ^hdf5~mpi ^cgns~mpi ^mesquite~mpi
20+
#==========================================
21+
# testing the install
22+
#export PYTHONPATH=spack/opt/spack/gmds/lib:$PYTHONPATH
23+
#spack load py-pytest
24+
#pytest gmds/pygmds/tst gmds/test_samples
25+
#==========================================

0 commit comments

Comments
 (0)