Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Info about CARGO_ZIGBUILD_PYTHON_PATH #266

Open
mert-kurttutan opened this issue Jul 25, 2024 · 1 comment
Open

Docs: Info about CARGO_ZIGBUILD_PYTHON_PATH #266

mert-kurttutan opened this issue Jul 25, 2024 · 1 comment

Comments

@mert-kurttutan
Copy link

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:

  • I think this particular error (related python binary) should be reported as failed to find python.
  • Add documentation about env var CARGO_ZIGBUILD_PYTHON_PATH (I was not able to find docs about this)
@mert-kurttutan
Copy link
Author

I am willing to make PR, if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant