Skip to content
Snippets Groups Projects

2018 sep20

Merged Sahil Moza requested to merge 2018Sep20 into master
32 files
+ 865
592
Compare changes
  • Side-by-side
  • Inline
Files
32
@@ -40,24 +40,34 @@ unset PYTHONPATH
$PYTHON2 -m compileall -q .
if type $PYTHON3 > /dev/null; then $PYTHON3 -m compileall -q . ; fi
# This is only applicable on linux build.
# Python2 and GSL.
echo "Currently in `pwd`"
(
mkdir -p _GSL_BUILD && cd _GSL_BUILD
cmake -DDEBUG=ON -DPYTHON_EXECUTABLE="$PYTHON2" ..
$MAKE && ctest --output-on-failure
sudo make install && cd /tmp
$PYTHON2 -c 'import moose;print(moose.__file__);print(moose.version())'
)
# Python3 with GSL and BOOST. This should be the only build after we drop
# python2 support.
echo "Python3: Removed python2-networkx and install python3"
if type $PYTHON3 > /dev/null; then
sudo apt-get remove -qq python-networkx || echo "Error with apt"
sudo apt-get install -qq python3-networkx || echo "Error with apt"
# GSL.
(
mkdir -p _GSL_BUILD2 && cd _GSL_BUILD2 && \
cmake -DPYTHON_EXECUTABLE="$PYTHON3" -DDEBUG=ON ..
$MAKE && ctest --output-on-failure
$MAKE && ctest --output-on-failure
)
# BOOST
(
mkdir -p _BOOST_BUILD2 && cd _BOOST_BUILD2 && \
cmake -DWITH_BOOST_ODE=ON -DPYTHON_EXECUTABLE="$PYTHON3" ..
$MAKE && ctest --output-on-failure
$MAKE && ctest --output-on-failure
)
echo "All done"
else