VirtualBox

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


Ignore:
Timestamp:
Jan 25, 2024 4:52:03 PM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161316
Message:

Installer/Python: This hopefully should fix the remaining macOS installer issues. bugref:10579

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/common/vboxapisetup.py

    r103051 r103070  
    268268            setup(cmdclass={"install": setupInstallClass})
    269269        else:
    270             if sys.version_info >= (3, 3): # Starting with Python 3.3 we use pyproject.toml by using setup().
    271                 try:
    272                     from distutils.core import setup # pylint: disable=deprecated-module
    273                     setup(cmdclass={"install": setupInstallClass})
    274                 except ImportError:
    275                     print("distutils[.core] package not installed/available, falling back to legacy setuptools ...")
    276                     fInvokeSetupTools = True # Invoke setuptools as a last resort.
    277             else: # Python 2.7.x + Python < 3.6 legacy cruft.
     270            try:
    278271                from distutils.core import setup # pylint: disable=deprecated-module
    279272                fInvokeSetupTools = True
     273            except ImportError:
     274                print("ERROR: distutils.core package not installed/available, can't continue. Exiting.")
     275                return 1
    280276
    281277            if fInvokeSetupTools:
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