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

setup.py: install correctly if CARGO_ env vars set #390

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

davidhewitt
Copy link
Member

On PyO3/pyo3#1269 I currently have an issue where CARGO_BUILD_TARGET environment variable causes pip install maturin to fail because the maturin executable is put in an unexpected location.

This PR changes setup.py to use the --message-format=json output from rustc to snoop the built maturin binary location for installation.

@konstin
Copy link
Member

konstin commented Jan 8, 2021

Thank you!

@konstin konstin merged commit 0fc16fe into PyO3:master Jan 8, 2021
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

Successfully merging this pull request may close these issues.

2 participants