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:
Gene Hoffman 2021-02-21 12:01:52 -08:00 committed by GitHub
parent 70e5cf2a66
commit 48561a3f28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 5 deletions

View File

@ -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

View File

@ -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"