diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2024-03-08 16:43:07 -0500 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2024-03-08 16:44:55 -0500 |
commit | 2eb3bfa32a12eeb3676f544d1eec0dda44d22544 (patch) | |
tree | 0c5b707dbaa33ef56744d820e051d52af9cea4ed | |
parent | e896700b246328f24363ef1ecd44a885a1673aeb (diff) |
rustPlatform.maturinBuildHook: specify the output directory pr/cramjam_2_8_1
-rw-r--r-- | pkgs/build-support/rust/hooks/maturin-build-hook.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/build-support/rust/hooks/maturin-build-hook.sh b/pkgs/build-support/rust/hooks/maturin-build-hook.sh index 028441d18160e..31ac445ba1804 100644 --- a/pkgs/build-support/rust/hooks/maturin-build-hook.sh +++ b/pkgs/build-support/rust/hooks/maturin-build-hook.sh @@ -3,6 +3,9 @@ maturinBuildHook() { runHook preBuild + # Put the wheel to dist/ so that regular Python tooling can find it. + local dist="$PWD/dist" + if [ ! -z "${buildAndTestSubdir-}" ]; then pushd "${buildAndTestSubdir}" fi @@ -16,6 +19,7 @@ maturinBuildHook() { --manylinux off \ --strip \ --release \ + --out "$dist" \ ${maturinBuildFlags-} ) @@ -23,10 +27,6 @@ maturinBuildHook() { popd fi - # Move the wheel to dist/ so that regular Python tooling can find it. - mkdir -p dist - mv ${cargoRoot:+$cargoRoot/}target/wheels/*.whl dist/ - # These are python build hooks and may depend on ./dist runHook postBuild |