To follow up on the information above. CPython added support for configuring with MINGW variants in https://github.com/python/cpython/pull/100137 (3.12.0a4). This causes the package to fail to build when targeting older releases (testing above was with cpython3.10.19) without explicitly configuring the preprocessor definition provided.
Sorry for the delay on testing this. I realized logical error which causes an unsupported operand type(s) for +: 'WindowsPath' and 'str' exception. Moving the extension handling to the zig variable is tested as working: --- a/setuptools_zig.py +++ b/setuptools_zip.py @@ -55,13 +55,13 @@ debug = Debug() -zig = 'zig' # if nothing else just try the command +# as indicated by amalachowski https://sourceforge.net/p/ruamel-yaml-clibz/tickets/2/#9468 +zig = 'zig' + ('.exe' if platform.system() == 'Windows'...
The setuptools-zig dependency needs a .exe extension when discovering the zig compiler from the ziglang import. e.g diff --git a/setuptools_zig.py b/setuptools_zig.py index 10f4730..af15a10 100644 --- a/setuptools_zig.py +++ b/setuptools_zig.py @@ -60,7 +60,7 @@ try: import ziglang # NOQA zig_dir = Path(ziglang.__file__).parent # setting env didn't work for Unifi alpine, as zig did not have executable bit set - zig_path = zig_dir / 'zig' + zig_path = zig_dir / 'zig' + ('.exe' if platform.system()...