File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 33# its most recent release.
44
55# This script will invoke Python with the value of the PYTHON environment
6- # variable (if set), or fall back to "python3". Note that NetBox v3.0 + requires
7- # Python 3.7 or later.
6+ # variable (if set), or fall back to "python3". Note that NetBox v3.2 + requires
7+ # Python 3.8 or later.
88
99cd " $( dirname " $0 " ) "
1010VIRTUALENV=" $( pwd -P) /venv"
1111PYTHON=" ${PYTHON:- python3} "
1212
1313# Validate the minimum required Python version
14- COMMAND=" ${PYTHON} -c 'import sys; exit(1 if sys.version_info < (3, 7 ) else 0)'"
14+ COMMAND=" ${PYTHON} -c 'import sys; exit(1 if sys.version_info < (3, 8 ) else 0)'"
1515PYTHON_VERSION=$( eval " ${PYTHON} -V" )
1616eval $COMMAND || {
1717 echo " --------------------------------------------------------------------"
1818 echo " ERROR: Unsupported Python version: ${PYTHON_VERSION} . NetBox requires"
19- echo " Python 3.7 or later. To specify an alternate Python executable, set"
19+ echo " Python 3.8 or later. To specify an alternate Python executable, set"
2020 echo " the PYTHON environment variable. For example:"
2121 echo " "
22- echo " sudo PYTHON=/usr/bin/python3.7 ./upgrade.sh"
22+ echo " sudo PYTHON=/usr/bin/python3.8 ./upgrade.sh"
2323 echo " "
2424 echo " To show your current Python version: ${PYTHON} -V"
2525 echo " --------------------------------------------------------------------"
You can’t perform that action at this time.
0 commit comments