Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1469

macos_pyside_min_deployment_target incorrectly assumes get_config_var always returns a string

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.15.2
    • PySide
    • None
    • MacOS Big Sur on Apple Silicon
    • macOS
    • e48867871d787f278e6151819658b7e3433a3d84 (pyside/pyside-setup/6.0) 3f6c13dc7b4241c924b0b4366e3cbc94572737b7 (pyside/pyside-setup/dev)

    Description

      The helper function macos_pyside_min_deployment_target in{{ build_scripts/wheel_utils.py}} incorrectly assumes that get_config_var('MACOSX_DEPLOYMENT_TARGET') always returns a string or None. This is not the case on MacOS Big Sur where the SDK version is returned as an integer when using SDK version 11. This results in an exception when the version is split into major and minor parts and prevents a successful build.

      I have been able to work around the issue by modifying the line that splits the version number (note the explicit string conversion):

      python_target_split = [int(x) for x in str(python_target).split('.')] 

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            andysan Andreas Sandberg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes