mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-10-26 20:40:51 +03:00
Don't run install-gui or timelord unless in venv (#992)
* Don't run install-gui or timelord unless in venv * shellcheck
This commit is contained in:
parent
70e5cf2a66
commit
48561a3f28
@ -1,8 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "This requires the chia python virtual environment."
|
||||
echo "Execute '. ./activate' if you have not already, before running."
|
||||
if [ -z "$VIRTUAL_ENV" ]; then
|
||||
echo "This requires the chia python virtual environment."
|
||||
echo "Execute '. ./activate' before running."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Allows overriding the branch or commit to build in chia-blockchain-gui
|
||||
SUBMODULE_BRANCH=$1
|
||||
|
@ -1,7 +1,12 @@
|
||||
#!/bin/bash
|
||||
echo "This requires the chia python virtual environment."
|
||||
echo "Execute '. ./activate' if you have not already, before running."
|
||||
echo "This version of Timelord requires CMake 3.14+ to compile vdf_client"
|
||||
|
||||
if [ -z "$VIRTUAL_ENV" ]; then
|
||||
echo "This requires the chia python virtual environment."
|
||||
echo "Execute '. ./activate' before running."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Timelord requires CMake 3.14+ to compile vdf_client"
|
||||
|
||||
PYTHON_VERSION=$(python -c 'import sys; print(f"python{sys.version_info.major}.{sys.version_info.minor}")')
|
||||
echo "Python version: $PYTHON_VERSION"
|
||||
|
Loading…
Reference in New Issue
Block a user