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

Use target CARGO_BUILD_TARGET if specified #90

Merged
merged 2 commits into from
Nov 15, 2020

Conversation

Anthchirp
Copy link
Contributor

We ran into a build issue on conda-forge recently, where setuptools-rust does not pick up that a CARGO_BUILD_TARGET environment variable is set. The effect of this is that the rust compilation step succeeds, but the build artifacts land in a .../target/x86_64-unknown-linux-gnu/release/... path. setuptools-rust still looks for them in the .../target/release/... parth though, which the fails the build.

This change might fix the issue. I haven't tested it though, and I'm not a rust developer.

Anthchirp and others added 2 commits November 14, 2020 17:42
rust will pick up the environment variable anyway, but if we don't pick
up on it, too, then we won't find the build artifacts.
@davidhewitt
Copy link
Member

👍 thanks! I've pushed a changelog entry & will merge now.

You should be able to test it by installing setuptools-rust @ git+https://github.com/PyO3/setuptools-rust.git using pip.

@davidhewitt davidhewitt merged commit b21ea50 into PyO3:master Nov 15, 2020
Anthchirp added a commit to Anthchirp/setuptools-rust-feedstock that referenced this pull request Nov 16, 2020
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