VirtualBox

Changeset 11905 in vbox


Ignore:
Timestamp:
Sep 1, 2008 9:45:45 AM (16 years ago)
Author:
vboxsync
Message:

VBoxPython: Install as VBoxPython2_3 on darwin (since that's what we're building now).

Location:
trunk/src/libs/xpcom18a4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/Makefile.kmk

    r11892 r11905  
    13261326VBoxPython_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTI_API EXPORT_XPT_API \
    13271327                  VBOX_PYXPCOM VBOX_WITH_XPCOM
     1328VBoxPython_NAME.darwin = VBoxPython2_3
    13281329VBoxPython_INCS = \
    13291330        python/src \
  • trunk/src/libs/xpcom18a4/python/vboxxpcom.py

    r11852 r11905  
    2525#cglue = __import__('VBoxPython')
    2626if platform.system() == 'Darwin':
    27     # TODO: This needs to be changed if it is supposed to work with OSE as well.
     27    # On Darwin (aka Mac OS X) we know exactly where things are in a normal
     28    # VirtualBox installation. Also, there are two versions of python there
     29    # (2.3.x and 2.5.x) depending on whether the os is striped or spotty, so
     30    # we have to choose the right module to load.
     31    #
     32    # XXX: This needs to be adjusted for OSE builds. A more general solution would
     33    #      be to to sed the file during install and inject the VBOX_PATH_APP_PRIVATE_ARCH
     34    #      and VBOX_PATH_SHARED_LIBS when these are set.
    2835    saved_sys_path = sys.path;
    2936    sys.path = [ '/Applications/VirtualBox.app/Contents/MacOS', ] + saved_sys_path
    30     cglue = __import__('VBoxPython')
     37    mod = 'VBoxPython' + str(sys.version_info[0]) + '_' + str(sys.version_info[1])
     38    cglue = __import__(mod)
    3139    sys.path = saved_sys_path   
    3240else:
     
    3442sys.modules['xpcom._xpcom'] = cglue
    3543xpcom._xpcom = cglue
     44
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