Correctly detect brew/boost and add vdf_bench to .gitignore
This commit is contained in:
parent
82fbafcf36
commit
e2a69b9741
2 changed files with 9 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -64,6 +64,9 @@ activate
|
|||
# Packaging
|
||||
chia-blockchain.tar.gz
|
||||
|
||||
# Timelord utilities
|
||||
vdf_bench
|
||||
|
||||
# Electron wallet node modules
|
||||
src/wallet/electron/node_modules/
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue