VirtualBox

Changeset 90537 in vbox for trunk/src


Ignore:
Timestamp:
Aug 6, 2021 6:37:38 AM (4 years ago)
Author:
vboxsync
Message:

libs/xpcom: Added support for running with Python 3.10 (untested).

Location:
trunk/src/libs/xpcom18a4/python
Files:
3 edited

Legend:

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

    r87442 r90537  
    55
    66#
    7 # Copyright (C) 2009-2017 Oracle Corporation
     7# Copyright (C) 2009-2021 Oracle Corporation
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    2121#
    2222# List of supported Python versions, defining a number of
    23 # VBOX_PYTHON[26|27|31|32|32M|33|33M|34|34M|35|35M|36|36M|37|37M|38|38M|39|39M|DEF]_[INC|LIB] variables
     23# VBOX_PYTHON[26|27|31|32|32M|33|33M|34|34M|35|35M|36|36M|37|37M|38|38M|39|39M|310|310M|DEF]_[INC|LIB] variables
    2424# which get picked up below.
    2525#
     
    647647endif
    648648
     649ifdef VBOX_PYTHON310_INC
     650#
     651# Python 3.10 version
     652#
     653DLLS += VBoxPython3_10
     654VBoxPython3_10_EXTENDS    = VBoxPythonBase
     655VBoxPython3_10_EXTENDS_BY = appending
     656VBoxPython3_10_TEMPLATE   = XPCOM
     657VBoxPython3_10_INCS       = $(VBOX_PYTHON310_INC)
     658VBoxPython3_10_LIBS       = $(VBOX_PYTHON310_LIB)
     659
     660 ifdef VBOX_WITH_32_ON_64_MAIN_API
     661  ifdef VBOX_PYTHON310_LIB_X86
     662DLLS += VBoxPython3_10_x86
     663VBoxPython3_10_x86_EXTENDS    = VBoxPythonBase_x86
     664VBoxPython3_10_x86_EXTENDS_BY = appending
     665VBoxPython3_10_x86_TEMPLATE   = XPCOM
     666VBoxPython3_10_x86_INCS       = $(VBOX_PYTHON310_INC)
     667VBoxPython3_10_x86_LIBS       = $(VBOX_PYTHON310_LIB_X86)
     668  endif
     669 endif
     670endif
     671
     672ifdef VBOX_PYTHON310M_INC
     673#
     674# Python 3.10 version with pymalloc
     675#
     676DLLS += VBoxPython3_10m
     677VBoxPython3_10m_EXTENDS    = VBoxPythonBase_m
     678VBoxPython3_10m_EXTENDS_BY = appending
     679VBoxPython3_10m_TEMPLATE   = XPCOM
     680VBoxPython3_10m_INCS       = $(VBOX_PYTHON310M_INC)
     681VBoxPython3_10m_LIBS       = $(VBOX_PYTHON310M_LIB)
     682
     683 ifdef VBOX_WITH_32_ON_64_MAIN_API
     684  ifdef VBOX_PYTHON310M_LIB_X86
     685DLLS += VBoxPython3_10m_x86
     686VBoxPython3_10m_x86_EXTENDS    = VBoxPythonBase_x86_m
     687VBoxPython3_10m_x86_EXTENDS_BY = appending
     688VBoxPython3_10m_x86_TEMPLATE_  = XPCOM
     689VBoxPython3_10m_x86_INCS       = $(VBOX_PYTHON310M_INC)
     690VBoxPython3_10m_x86_LIBS       = $(VBOX_PYTHON310M_LIB_X86)
     691  endif
     692 endif
     693endif
     694
    649695ifdef VBOX_PYTHONDEF_INC
    650696#
     
    731777
    732778include $(FILE_KBUILD_SUB_FOOTER)
    733 
  • trunk/src/libs/xpcom18a4/python/gen_python_deps.py

    r87445 r90537  
    22
    33"""
    4 Copyright (C) 2009-2016 Oracle Corporation
     4Copyright (C) 2009-2021 Oracle Corporation
    55
    66This file is part of VirtualBox Open Source Edition (OSE), as
     
    1717from distutils.version import StrictVersion
    1818
    19 versions = ["2.6", "2.7", "3.1", "3.2", "3.2m", "3.3", "3.3m", "3.4", "3.4m", "3.5", "3.5m", "3.6", "3.6m", "3.7", "3.7m", "3.8", "3.8m", "3.9", "3.9m" ]
     19versions = ["2.6", "2.7", "3.1", "3.2", "3.2m", "3.3", "3.3m", "3.4", "3.4m", "3.5", "3.5m", "3.6", "3.6m", "3.7", "3.7m", "3.8", "3.8m", "3.9", "3.9m", "3.10", "3.10m" ]
    2020prefixes = ["/usr", "/usr/local", "/opt", "/opt/local"]
    2121known = {}
  • trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp

    r87448 r90537  
    8585# endif
    8686# if defined(VBOX_PYXPCOM_VERSIONED) && !defined(VBOX_PYXPCOM_MAJOR_VERSIONED)
    87 #  if   PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
     87#  if   PY_VERSION_HEX >= 0x030a0000 && PY_VERSION_HEX < 0x030b0000
     88#   define MODULE_NAME    MANGLE_MODULE_NAME("VBoxPython3_10")
     89#   define initVBoxPython MANGLE_MODULE_INIT(PyInit_VBoxPython3_10)
     90
     91#  elif   PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
    8892#   define MODULE_NAME    MANGLE_MODULE_NAME("VBoxPython3_9")
    8993#   define initVBoxPython MANGLE_MODULE_INIT(PyInit_VBoxPython3_9)
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