mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
maturinBuildHook: use dist dir relative to cargoRoot
With `cargoRoot` set to a subdirectory of the source, where the Cargo.{lock,toml} are found, the final mv would previously fail, since the build results appear relative to cargoRoot, not to the original build directory.
This commit is contained in:
parent
38d1116c18
commit
8742c0cd2e
|
@ -25,7 +25,7 @@ maturinBuildHook() {
|
|||
|
||||
# Move the wheel to dist/ so that regular Python tooling can find it.
|
||||
mkdir -p dist
|
||||
mv target/wheels/*.whl dist/
|
||||
mv ${cargoRoot:+$cargoRoot/}target/wheels/*.whl dist/
|
||||
|
||||
# These are python build hooks and may depend on ./dist
|
||||
runHook postBuild
|
||||
|
|
Loading…
Reference in a new issue