Timeout optimized Python build so we can cache partial testing...

This commit is contained in:
Jay Lee
2019-07-27 09:36:01 -04:00
parent ffd1c297e5
commit cbfd93e440

View File

@@ -66,17 +66,19 @@ else
echo "running configure with safe and unsafe"
./configure $safe_flags $unsafe_flags > /dev/null
fi
make -j$cpucount -s
timeout 1800 make -j$cpucount -s
RESULT=$?
echo "First make exited with $RESULT"
if [ $RESULT != 0 ]; then
echo "Trying Python compile again without unsafe flags..."
make clean
./configure $safe_flags > /dev/null
make -j$cpucount -s
#echo "Trying Python compile again without unsafe flags..."
#make clean
#./configure $safe_flags > /dev/null
#make -j$cpucount -s
echo "Sticking with safe Python for now..."
else
echo "Installing optimized Python..."
make install > /dev/null
fi
echo "Installing Python..."
make install > /dev/null
cd ~
export LD_LIBRARY_PATH=~/ssl/lib:~/python/lib