New submission from Phil Thompson <p...@riverbankcomputing.com>:

I am running macOS v11 (Big Sur) and using Xcode v12.1 (because this is the 
latest that includes SDK v10.15 rather than v11) to build a C extension. I'm 
using the older SDK because of 3rd party libraries that are not tested against 
the newer SDK.

This version of Xcode/SDK does not support universal2 binaries. However because 
_supports_arm64_builds() in _osx_support only tests the macOS version and not 
the SDK version it returns True which means that distutils does not call 
compiler_fixup() to remove the '-arch arm64'. The compilation then fails.

Should this work, or does Python v3.10 require SDK v11?

----------
components: Distutils
messages: 396377
nosy: dstufft, eric.araujo, philthompson10
priority: normal
severity: normal
status: open
title: Building a C extension on Big Sur and SDK v10.15 fails
type: behavior
versions: Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44492>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to