Correctly detect brew/boost and add vdf_bench to .gitignore

This commit is contained in:
Gene Hoffman 2020-04-17 17:20:24 -07:00 committed by Richard Kiss
parent 82fbafcf36
commit e2a69b9741
2 changed files with 9 additions and 1 deletions

3
.gitignore vendored
View file

@ -64,6 +64,9 @@ activate
# Packaging
chia-blockchain.tar.gz
# Timelord utilities
vdf_bench
# Electron wallet node modules
src/wallet/electron/node_modules/

View file

@ -25,10 +25,15 @@ else
echo venv/bin/python -m pip install --force --no-binary chiavdf $CHIAVDF_VERSION
venv/bin/python -m pip install --force --no-binary chiavdf $CHIAVDF_VERSION
ln -s venv/lib/python3.7/site-packages/vdf_bench
elif [ -e venv/bin/python ] && test $MACOS && ! brew info boost>/dev/null 2>&1
elif [ -e venv/bin/python ] && test $MACOS && brew info boost | grep -q 'Not installed'
then
echo "Installing chiavdf requirements for MacOS"
brew install boost
echo "installing chiavdf from source for MacOS"
# User needs to provide required packages
echo venv/bin/python -m pip install --force --no-binary chiavdf $CHIAVDF_VERSION
venv/bin/python -m pip install --force --no-binary chiavdf $CHIAVDF_VERSION
ln -s venv/lib/python3.7/site-packages/vdf_bench
elif [ -e venv/bin/python ]
then
echo "installing chiavdf from source"