File tree 1 file changed +14
-5
lines changed
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,16 @@ echo "SPACK_HOME=${SPACK_HOME}"
67
67
if [[ " ${spack_reinstall} " -eq 1 ]]; then
68
68
\r m -Rf ${SPACK_HOME}
69
69
fi
70
+ if [[ " $spack_dev " -eq 0 ]]; then
71
+ \r m -Rf _spack_tpls
72
+ git clone https://github.com/or-fusion/or-fusion-spack-repo.git _spack_tpls
73
+ else
74
+ git clone
[email protected] :or-fusion/or-fusion-spack-repo.git _spack_tpls
75
+ cd _spack_tpls
76
+ git checkout dev
77
+ git pull
78
+ cd ..
79
+ fi
70
80
\r m -Rf _build
71
81
#
72
82
# Configure gurobi
@@ -94,17 +104,16 @@ else
94
104
echo " "
95
105
echo " Installing Coek dependencies using Spack"
96
106
echo " "
97
- if [[ " $spack_dev " -eq 0 ]]; then
98
- git clone https://github.com/or-fusion/spack.git ${SPACK_HOME}
99
- else
100
- git clone
[email protected] :or-fusion/spack.git
${SPACK_HOME}
101
- fi
107
+ git clone https://github.com/spack/spack.git ${SPACK_HOME}
102
108
. ${SPACK_HOME} /share/spack/setup-env.sh
109
+ spack repo add _spack_tpls/repo
110
+ spack repo list
103
111
spack env create coekenv
104
112
spack env activate coekenv
105
113
spack add asl cppad fmt rapidjson catch2 highs $with_valgrind
106
114
spack install
107
115
spack env deactivate
116
+ spack repo remove _spack_tpls/repo
108
117
fi
109
118
if test -d ${SPACK_HOME} ; then
110
119
export SPACK_HOME=$( cd ${SPACK_HOME} ; pwd)
You can’t perform that action at this time.
0 commit comments