zig-bootstrap icon indicating copy to clipboard operation
zig-bootstrap copied to clipboard

Use Python for scripting and get this working on Windows

Open Prince213 opened this issue 4 years ago • 5 comments

Currently I see no POSIX-specific utlities need to bootstrap Zig besides bash. Maybe we can switch to use Python for scripting to reduce dependencies. Another benifit for this is to be able to run this on Windows.

Prince213 avatar Oct 19 '21 09:10 Prince213

By using Python, we can also do patching in Python scripts, which could be a solution for #61 .

Prince213 avatar Oct 19 '21 09:10 Prince213

Python is far more of a dependency than a shell. The scripts intentionally work with any POSIX compliant shell; not just bash.

daurnimator avatar Oct 19 '21 09:10 daurnimator

It's attractive to run this on Windows, and it does no harm (we need Python anyway).

Prince213 avatar Oct 19 '21 09:10 Prince213

it'd be better to add a powershell/batch script for windows because otherwise the python script would need to special case windows regardless

nektro avatar Jan 08 '22 10:01 nektro

it'd be better to add a powershell/batch script for windows because otherwise the python script would need to special case windows regardless

See https://github.com/ziglang/zig-bootstrap/pull/140

LinuxUserGD avatar Feb 25 '23 16:02 LinuxUserGD