[issue46691] sysconfig.get_platform() raises ValueError on macOS if '-arch' is present in CFLAGS but doesn't refer to the '-arch' compiler flag

2022-03-29 Thread Ned Deily
Ned Deily added the comment: Also reported in bpo-47154 including a suggested fix -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> -arch detection in _osx_support generates false positives ___ Python tracker

[issue46691] sysconfig.get_platform() raises ValueError on macOS if '-arch' is present in CFLAGS but doesn't refer to the '-arch' compiler flag

2022-02-09 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg412958 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46691] sysconfig.get_platform() raises ValueError on macOS if '-arch' is present in CFLAGS but doesn't refer to the '-arch' compiler flag

2022-02-09 Thread Ned Deily
Ned Deily added the comment: Thanks for the report; I don't recall this coming up before. Of course, the easy workaround is to avoid using "-arch" in CFLAGS paths and the like, but we should fix this. -- ___ Python tracker

[issue46691] sysconfig.get_platform() raises ValueError on macOS if '-arch' is present in CFLAGS but doesn't refer to the '-arch' compiler flag

2022-02-09 Thread Ned Deily
Ned Deily added the comment: Thanks for the report; I don't recall this coming up before. Of course, the easy workaround is to avoid using "arch" in CFLAGS paths and the like, but we should fix this. -- components: +macOS nosy: +ned.deily, ronaldoussoren type: crash -> compile error

[issue46691] sysconfig.get_platform() raises ValueError on macOS if '-arch' is present in CFLAGS but doesn't refer to the '-arch' compiler flag

2022-02-09 Thread Duncan Macleod
New submission from Duncan Macleod : The `sysconfig.get_platform()` function raises a `ValueError` if the `cflags` config value (e.g. the `CFLAGS` used at build time) includes the text `-arch` where that doesn't refer to the compiler flag of the same name. Consider the following example