rust-cross / cargo-zigbuild

Compile Cargo project with zig as linker
MIT License
1.45k stars 52 forks source link

Docs: Info about CARGO_ZIGBUILD_PYTHON_PATH #266

Open mert-kurttutan opened 1 month ago

mert-kurttutan commented 1 month ago

One of machines had python binary named python (instead of python3). I looked into source code and discovered CARGO_ZIGBUILD_PYTHON_PATH, then used it, cargo zigbuild worked properly.

Also, the error due to not-finding python is reported as

Error: Failed to find zig

Caused by:
    cannot find binary path

Two suggestions:

mert-kurttutan commented 1 month ago

I am willing to make PR, if necessary.