Skip to content

Commit

Permalink
make yices build more resilient
Browse files Browse the repository at this point in the history
  • Loading branch information
ruaronicola committed Aug 8, 2023
1 parent da1552b commit fae1a8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ dpkg -l | grep -q libgmp-dev || { echo "${bold}${red}libgmp-dev is not installed

# install
autoconf || { echo "${bold}${red}Failed to run autoconf${normal}"; exit 1; }
./configure || { echo "${bold}${red}Failed to run ./configure${normal}"; exit 1; }
./configure --enable-thread-safety || { echo "${bold}${red}Failed to run ./configure${normal}"; exit 1; }
make || { echo "${bold}${red}Failed to run make${normal}"; exit 1; }

# finally, link yices2/build/lib/ to the virtualenv's site-packages dir
Expand All @@ -133,6 +133,9 @@ if [ ! -d $GREED_DIR/yices2_python_bindings ]; then
git clone https://github.com/ruaronicola/yices2_python_bindings.git $GREED_DIR/yices2_python_bindings
fi

# for some reason github builds fail to find libyices.so. This should fix it
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VIRTUAL_ENV_LIB
pip install -e yices2_python_bindings
yices_python_info

set +x

0 comments on commit fae1a8b

Please sign in to comment.