lol

rustPlatform.maturinBuildHook: specify the output directory (#291025)

authored by

Dmitry Kalinkin and committed by
GitHub
fbd21c50 67b4bf1d

+4 -4
+4 -4
pkgs/build-support/rust/hooks/maturin-build-hook.sh
··· 3 3 4 4 runHook preBuild 5 5 6 + # Put the wheel to dist/ so that regular Python tooling can find it. 7 + local dist="$PWD/dist" 8 + 6 9 if [ ! -z "${buildAndTestSubdir-}" ]; then 7 10 pushd "${buildAndTestSubdir}" 8 11 fi ··· 16 19 --manylinux off \ 17 20 --strip \ 18 21 --release \ 22 + --out "$dist" \ 19 23 ${maturinBuildFlags-} 20 24 ) 21 25 22 26 if [ ! -z "${buildAndTestSubdir-}" ]; then 23 27 popd 24 28 fi 25 - 26 - # Move the wheel to dist/ so that regular Python tooling can find it. 27 - mkdir -p dist 28 - mv ${cargoRoot:+$cargoRoot/}target/wheels/*.whl dist/ 29 29 30 30 # These are python build hooks and may depend on ./dist 31 31 runHook postBuild