VirtualBox

Changeset 99496 in vbox


Ignore:
Timestamp:
Apr 20, 2023 9:24:36 PM (20 months ago)
Author:
vboxsync
Message:

configure, xpcom/python: Handle versions up to Python 3.12, and remove the useless handling of the 'm' suffix after 3.8 when it became the only existing variant.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r99495 r99496  
    21742174EOF
    21752175  found=
    2176   SUPPYTHONLIBS="python2.7 python2.6 python3.1 python3.2 python3.3 python3.4 python3.4m python3.5 python3.5m python3.6 python3.6m python3.7 python3.7m python3.8 python3.8m python3.9 python3.9m python3.10 python3.10m"
     2176  SUPPYTHONLIBS="python2.7 python2.6 python3.1 python3.2 python3.3 python3.4 python3.4m python3.5 python3.5m python3.6 python3.6m python3.7 python3.7m python3.8 python3.9 python3.10 python3.11 python3.12"
    21772177  for p in $PYTHONDIR; do
    21782178    for d in $SUPPYTHONLIBS; do
  • trunk/src/libs/xpcom18a4/python/Makefile.kmk

    r99040 r99496  
    552552  ifdef VBOX_PYTHON38_INC
    553553   #
    554    # Python 3.8 version
     554   # Python 3.8 version (implicitly with pymalloc)
    555555   #
    556556   DLLS += VBoxPython3_8
     
    571571  endif
    572572
    573   ifdef VBOX_PYTHON38M_INC
    574    #
    575    # Python 3.8 version with pymalloc
    576    #
    577    DLLS += VBoxPython3_8m
    578    VBoxPython3_8m_EXTENDS = VBoxPythonBase_m
    579    VBoxPython3_8m_EXTENDS_BY = appending
    580    VBoxPython3_8m_INCS    = $(VBOX_PYTHON38M_INC)
    581    VBoxPython3_8m_LIBS    = $(VBOX_PYTHON38M_LIB)
    582 
    583    ifdef VBOX_WITH_32_ON_64_MAIN_API
    584     ifdef VBOX_PYTHON38M_LIB_X86
    585      DLLS += VBoxPython3_8m_x86
    586      VBoxPython3_8m_x86_EXTENDS = VBoxPythonBase_x86_m
    587      VBoxPython3_8m_x86_EXTENDS_BY = appending
    588      VBoxPython3_8m_x86_INCS  = $(VBOX_PYTHON38M_INC)
    589      VBoxPython3_8m_x86_LIBS  = $(VBOX_PYTHON38M_LIB_X86)
    590     endif
    591    endif
    592   endif
    593 
    594573  ifdef VBOX_PYTHON39_INC
    595574   #
    596    # Python 3.9 version
     575   # Python 3.9 version (implicitly with pymalloc)
    597576   #
    598577   DLLS += VBoxPython3_9
     
    613592  endif
    614593
    615   ifdef VBOX_PYTHON39M_INC
    616    #
    617    # Python 3.9 version with pymalloc
    618    #
    619    DLLS += VBoxPython3_9m
    620    VBoxPython3_9m_EXTENDS = VBoxPythonBase_m
    621    VBoxPython3_9m_EXTENDS_BY = appending
    622    VBoxPython3_9m_INCS    = $(VBOX_PYTHON39M_INC)
    623    VBoxPython3_9m_LIBS    = $(VBOX_PYTHON39M_LIB)
    624 
    625    ifdef VBOX_WITH_32_ON_64_MAIN_API
    626     ifdef VBOX_PYTHON39M_LIB_X86
    627      DLLS += VBoxPython3_9m_x86
    628      VBoxPython3_9m_x86_EXTENDS = VBoxPythonBase_x86_m
    629      VBoxPython3_9m_x86_EXTENDS_BY = appending
    630      VBoxPython3_9m_x86_INCS  = $(VBOX_PYTHON39M_INC)
    631      VBoxPython3_9m_x86_LIBS  = $(VBOX_PYTHON39M_LIB_X86)
    632     endif
    633    endif
    634   endif
    635 
    636594  ifdef VBOX_PYTHON310_INC
    637595   #
    638    # Python 3.10 version
     596   # Python 3.10 version (implicitly with pymalloc)
    639597   #
    640598   DLLS += VBoxPython3_10
     
    655613  endif
    656614
    657   ifdef VBOX_PYTHON310M_INC
    658    #
    659    # Python 3.10 version with pymalloc
    660    #
    661    DLLS += VBoxPython3_10m
    662    VBoxPython3_10m_EXTENDS = VBoxPythonBase_m
    663    VBoxPython3_10m_EXTENDS_BY = appending
    664    VBoxPython3_10m_INCS    = $(VBOX_PYTHON310M_INC)
    665    VBoxPython3_10m_LIBS    = $(VBOX_PYTHON310M_LIB)
    666 
    667    ifdef VBOX_WITH_32_ON_64_MAIN_API
    668     ifdef VBOX_PYTHON310M_LIB_X86
    669      DLLS += VBoxPython3_10m_x86
    670      VBoxPython3_10m_x86_EXTENDS = VBoxPythonBase_x86_m
    671      VBoxPython3_10m_x86_EXTENDS_BY = appending
    672      VBoxPython3_10m_x86_INCS  = $(VBOX_PYTHON310M_INC)
    673      VBoxPython3_10m_x86_LIBS  = $(VBOX_PYTHON310M_LIB_X86)
     615  ifdef VBOX_PYTHON311_INC
     616   #
     617   # Python 3.11 version (implicitly with pymalloc)
     618   #
     619   DLLS += VBoxPython3_11
     620   VBoxPython3_11_EXTENDS = VBoxPythonBase
     621   VBoxPython3_11_EXTENDS_BY = appending
     622   VBoxPython3_11_INCS    = $(VBOX_PYTHON311_INC)
     623   VBoxPython3_11_LIBS    = $(VBOX_PYTHON311_LIB)
     624
     625   ifdef VBOX_WITH_32_ON_64_MAIN_API
     626    ifdef VBOX_PYTHON311_LIB_X86
     627     DLLS += VBoxPython3_11_x86
     628     VBoxPython3_11_x86_EXTENDS = VBoxPythonBase_x86
     629     VBoxPython3_11_x86_EXTENDS_BY = appending
     630     VBoxPython3_11_x86_INCS  = $(VBOX_PYTHON311_INC)
     631     VBoxPython3_11_x86_LIBS  = $(VBOX_PYTHON311_LIB_X86)
     632    endif
     633   endif
     634  endif
     635
     636  ifdef VBOX_PYTHON312_INC
     637   #
     638   # Python 3.12 version (implicitly with pymalloc)
     639   #
     640   DLLS += VBoxPython3_12
     641   VBoxPython3_12_EXTENDS = VBoxPythonBase
     642   VBoxPython3_12_EXTENDS_BY = appending
     643   VBoxPython3_12_INCS    = $(VBOX_PYTHON312_INC)
     644   VBoxPython3_12_LIBS    = $(VBOX_PYTHON312_LIB)
     645
     646   ifdef VBOX_WITH_32_ON_64_MAIN_API
     647    ifdef VBOX_PYTHON312_LIB_X86
     648     DLLS += VBoxPython3_12_x86
     649     VBoxPython3_12_x86_EXTENDS = VBoxPythonBase_x86
     650     VBoxPython3_12_x86_EXTENDS_BY = appending
     651     VBoxPython3_12_x86_INCS  = $(VBOX_PYTHON312_INC)
     652     VBoxPython3_12_x86_LIBS  = $(VBOX_PYTHON312_LIB_X86)
    674653    endif
    675654   endif
     
    718697  #       ('m' builds < 3.8) and CRT malloc.
    719698  #
    720   VBOX_PYTHON_LIMITED_API_VER := $(firstword $(foreach ver, 35 36 38 39 310   34 33 \
     699  VBOX_PYTHON_LIMITED_API_VER := $(firstword $(foreach ver, 35 36 38 39 310 311 312   34 33 \
    721700                        ,$(if-expr defined(VBOX_PYTHON$(ver)_INC),$(ver),)$(if-expr defined(VBOX_PYTHON$(ver)M_INC),$(ver)M,)))
    722701  ifneq ($(VBOX_PYTHON_LIMITED_API_VER),)
  • trunk/src/libs/xpcom18a4/python/gen_python_deps.py

    r99230 r99496  
    3030    from distutils.version import StrictVersion as Version
    3131
    32 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", "3.10", "3.10m", "3.11", "3.11m" ]
     32versions = ["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.9", "3.10", "3.11", "3.12" ]
    3333prefixes = ["/usr", "/usr/local", "/opt", "/opt/local"]
    3434known = {}
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