VirtualBox

Changeset 20264 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Jun 4, 2009 10:54:04 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48133
Message:

Solaris/Installer: ship and install python bindings.

Location:
trunk/src/VBox/Installer/solaris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/Makefile.kmk

    r19599 r20264  
    119119        platform/i86pc/kernel/drv/amd64 \
    120120,$(SOLARIS_BASEINST_DIR)/$(d))
     121
    121122
    122123PACKING          += $(PATH_BIN)/$(PKG_FILENAME).tar.gz $(PATH_BIN)/$(DBG_ARCHIVE)
     
    286287endif
    287288
     289# Python XPCOM glue
     290ifdef VBOX_WITH_PYTHON
     291  SOLARIS_COMMON += \
     292        $(foreach f,$(notdir $(wildcard $(PATH_BIN)/sdk/bindings/xpcom/python/xpcom/*.py)),sdk/bindings/xpcom/python/xpcom/$(f)) \
     293        sdk/bindings/xpcom/python/xpcom/client/__init__.py \
     294        sdk/installer/vboxapisetup.py \
     295        sdk/installer/vboxapi/__init__.py \
     296        sdk/installer/vboxapi/VirtualBox_constants.py
     297endif
     298
    288299# VRDP
    289300ifdef VBOX_WITH_VRDP
     
    385396        $(SOLARIS_DIR_NAME_32)/nls \
    386397        $(SOLARIS_DIR_NAME_32)/accessible \
     398        $(if $(VBOX_WITH_PYTHON),\
     399         sdk/ \
     400         sdk/installer \
     401         sdk/installer/vboxapi \
     402         sdk/bindings/xpcom/python/xpcom \
     403         sdk/bindings/xpcom/python/xpcom/client,) \
    387404,$(SOLARIS_VBOXINST_DIR)/$(d)/)
    388405
  • trunk/src/VBox/Installer/solaris/postinstall.sh

    r19210 r20264  
    8585fi
    8686
    87 VBOXBASEDIR="/opt/VirtualBox"
    8887echo "Configuring services and drivers..."
    8988
     
    122121fi
    123122
     123#
     124# Install python bindings
     125#
     126if test -f "/opt/VirtualBox/sdk/installer/vboxapisetup.py" || test -h "/opt/VirtualBox/sdk/installer/vboxapisetup.py"; then
     127    PYTHONBIN=`which python`
     128    if test -f "$PYTHONBIN" || test -h "$PYTHONBIN"; then
     129        echo "Installing Python bindings..."
     130
     131        cd /opt/VirtualBox/sdk/installer
     132        /opt/VirtualBox/sdk/installer/vboxapisetup.py install
     133    else
     134        echo "** WARNING! Python not found, skipped installed Python bindings."
     135        echo "   Manually run '/opt/VirtualBox/sdk/installer/vboxapisetup.py install'"
     136        echo "   to install the bindings when python is available."
     137    fi
     138fi
     139
    124140/usr/sbin/installf -f $PKGINST
    125141
Note: See TracChangeset for help on using the changeset viewer.

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