Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.15.2
-
None
-
MacOS Big Sur on Apple Silicon
-
-
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('.')]