Skip to content
Snippets Groups Projects
Commit 3078cf12 authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

add env var check in install script

parent 3dbba4ca
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,12 @@
VERSION_NUMBER=$(cat "VERSION")
echo "installing binarcpython version $VERSION_NUMBER"
# check the BINARY_C environment variable is defined
if [[ -z "${BINARY_C}" ]]; then
echo "Error: The BINARY_C environment variable is not defined. This should point to the directory of your binary_c installation. Please set it and try again."
exit
fi
# we can only use python3 and python3, but allow
# the user to set these in environment variables
# PYTHON and PIP.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment