forked from mit-dci/opencbdc-tx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added standalone pylint.sh script; improved install-build-tools.sh ov…
…er prev commit Signed-off-by: Morgan Rockett <[email protected]>
- Loading branch information
Showing
10 changed files
with
295 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,6 @@ jobs: | |
with: | ||
files: | | ||
Dockerfile | ||
**/configure.sh | ||
######################## | ||
# Build Base # | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
setuptools | ||
eth-hash | ||
matplotlib | ||
numpy | ||
pylint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# run with 'source scripts/activate-venv.sh' | ||
set -e | ||
|
||
ROOT="$(cd "$(dirname "$0")"/.. && pwd)" | ||
ENV_NAME=".py_venv" | ||
|
||
# if venv does not exist, send error message and exit | ||
if [ ! -d "${ROOT}/${ENV_NAME}" ]; then | ||
echo "Virtual environment '${ENV_NAME}' not found." | ||
if [[ $OSTYPE == "linux-gnu"* ]]; then | ||
echo "run 'sudo ./scripts/install-build-tools.sh' to create it." | ||
elif [[ $OSTYPE == "darwin"* ]]; then | ||
echo "run './scripts/install-build-tools.sh' to create it." | ||
fi | ||
exit 1 | ||
fi | ||
|
||
# activate virtual environment | ||
if source "${ROOT}/${ENV_NAME}/bin/activate"; then | ||
echo "Virtual environment '${ENV_NAME}' activated." | ||
echo "Run 'deactivate' to exit the virtual environment."s | ||
else | ||
echo "Failed to activate virtual environment '${ENV_NAME}'." | ||
exit 1 | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.