VirtualBox

Changeset 61436 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
Jun 3, 2016 12:13:28 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107755
Message:

Installers/linux: install python bindings only if python is at least version 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/routines.sh

    r59871 r61436  
    358358
    359359    PYTHON=python
    360     if [ ! `python -c 'print "test"' 2> /dev/null` = "test" ]; then
    361         echo  1>&2 "Python not available, skipping bindings installation."
     360    if [ ! `python -c 'import sys
     361if sys.version_info >= (2, 6):
     362    print "test"' 2> /dev/null` = "test" ]; then
     363        echo  1>&2 "Python 2.6 or later not available, skipping bindings installation."
    362364        return 1
    363365    fi
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette