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 3
3
# its most recent release.
4
4
5
5
# 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.2 + requires
7
- # Python 3.8 or later.
6
+ # variable (if set), or fall back to "python3". Note that NetBox v4.0 + requires
7
+ # Python 3.10 or later.
8
8
9
9
cd " $( dirname " $0 " ) "
10
10
@@ -15,15 +15,15 @@ VIRTUALENV="$(pwd -P)/venv"
15
15
PYTHON=" ${PYTHON:- python3} "
16
16
17
17
# Validate the minimum required Python version
18
- COMMAND=" ${PYTHON} -c 'import sys; exit(1 if sys.version_info < (3, 8 ) else 0)'"
18
+ COMMAND=" ${PYTHON} -c 'import sys; exit(1 if sys.version_info < (3, 10 ) else 0)'"
19
19
PYTHON_VERSION=$( eval " ${PYTHON} -V" )
20
20
eval $COMMAND || {
21
21
echo " --------------------------------------------------------------------"
22
22
echo " ERROR: Unsupported Python version: ${PYTHON_VERSION} . NetBox requires"
23
- echo " Python 3.8 or later. To specify an alternate Python executable, set"
23
+ echo " Python 3.10 or later. To specify an alternate Python executable, set"
24
24
echo " the PYTHON environment variable. For example:"
25
25
echo " "
26
- echo " sudo PYTHON=/usr/bin/python3.8 ./upgrade.sh"
26
+ echo " sudo PYTHON=/usr/bin/python3.10 ./upgrade.sh"
27
27
echo " "
28
28
echo " To show your current Python version: ${PYTHON} -V"
29
29
echo " --------------------------------------------------------------------"
You can’t perform that action at this time.
0 commit comments