Skip to content

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