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
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "This requires the chia python virtual environment."
|
if [ -z "$VIRTUAL_ENV" ]; then
|
||||||
echo "Execute '. ./activate' if you have not already, before running."
|
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
|
# Allows overriding the branch or commit to build in chia-blockchain-gui
|
||||||
SUBMODULE_BRANCH=$1
|
SUBMODULE_BRANCH=$1
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
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 version of Timelord requires CMake 3.14+ to compile vdf_client"
|
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}")')
|
PYTHON_VERSION=$(python -c 'import sys; print(f"python{sys.version_info.major}.{sys.version_info.minor}")')
|
||||||
echo "Python version: $PYTHON_VERSION"
|
echo "Python version: $PYTHON_VERSION"
|
||||||
|
Loading…
Reference in New Issue
Block a user