diff options
Diffstat (limited to '020-python-3-11.patch')
-rw-r--r-- | 020-python-3-11.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/020-python-3-11.patch b/020-python-3-11.patch new file mode 100644 index 000000000000..1dd820b73ce8 --- /dev/null +++ b/020-python-3-11.patch @@ -0,0 +1,13 @@ +diff --git a/src/VBox/Installer/linux/routines.sh b/src/VBox/Installer/linux/routines.sh +index 08e06358..44eba726 100644 +--- a/src/VBox/Installer/linux/routines.sh ++++ b/src/VBox/Installer/linux/routines.sh +@@ -446,7 +446,7 @@ maybe_run_python_bindings_installer() { + # the VirtualBox API bindings. Needs to prevent double installs which waste + # quite a bit of time. + PYTHONS="" +- for p in python2.6 python2.7 python2 python3.3 python3.4 python3.5 python3.6 python3.7 python3.8 python3.9 python3.10 python3 python; do ++ for p in python2.6 python2.7 python2 python3.3 python3.4 python3.5 python3.6 python3.7 python3.8 python3.9 python3.10 python3.11 python3 python; do + if [ "`$p -c 'import sys + if sys.version_info >= (2, 6) and (sys.version_info < (3, 0) or sys.version_info >= (3, 3)): + print(\"test\")' 2> /dev/null`" != "test" ]; then |